init: 0.0.6

next: upload
This commit is contained in:
loveuer committed 2025-04-28 14:59:22 +08:00
1 parent 4801b3de08
commit 0cfd617922
19 files changed
+713 -355

No files matched your search

+3
View File
@@ -5,6 +5,7 @@ import (
"github.com/loveuer/nf"
"github.com/loveuer/nf/nft/log"
"github.com/loveuer/nf/nft/tool"
"github.com/loveuer/ushare/internal/handler"
"github.com/loveuer/ushare/internal/opt"
"net"
"net/http"
@@ -17,6 +18,8 @@ func Start(ctx context.Context) <-chan struct{} {
return c.SendStatus(http.StatusOK)
})
app.Get("/api/share/fetch", handler.Fetch())
ready := make(chan struct{})
ln, err := net.Listen("tcp", opt.Cfg.Address)
if err != nil {