Add authentication function

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-24 20:43:19 +08:00
parent fd4da4f1a1
commit cd2bcd597c
11 changed files with 290 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
package server
import (
"nixcn-cms/service/check"
"nixcn-cms/service/auth"
"github.com/gin-gonic/gin"
)
@@ -9,5 +9,5 @@ import (
func Router(e *gin.Engine) {
// API Services
api := e.Group("/api/v1")
check.Handler(api.Group("/check"))
auth.Handler(api.Group("/auth"))
}