WIP: Full restruct, seprate service and api
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user