WIP: Full restruct, seprate service and api

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-24 11:42:35 +08:00
parent dfd5532b20
commit 8e11ba4631
31 changed files with 830 additions and 248 deletions

View File

@@ -5,6 +5,7 @@ import (
"log/slog"
"net"
"net/http"
"nixcn-cms/api"
"nixcn-cms/middleware"
"time"
@@ -24,7 +25,7 @@ func Start(ctx context.Context) {
r.Use(middleware.GinLogger())
r.Use(gin.Recovery())
Router(r)
api.Handler(r.Group("/api/v1"))
// Start http server
server := &http.Server{