wip: 0.2.0

1. websocket 连接,退出,消息
  2. 基本页面
This commit is contained in:
loveuer
2025-05-14 17:48:06 +08:00
parent 9146c87cad
commit ec3f76e0c0
13 changed files with 765 additions and 9 deletions

View File

@ -23,6 +23,11 @@ func Start(ctx context.Context) <-chan struct{} {
app.Post("/api/ushare/:code", handler.ShareUpload()) // 分片上传接口
app.Post("/api/uauth/login", handler.AuthLogin())
{
api := app.Group("/api/ulocal")
api.Get("/registry", handler.LocalRegistry())
}
ready := make(chan struct{})
ln, err := net.Listen("tcp", opt.Cfg.Address)
if err != nil {