This commit is contained in:
oneao committed 2026-02-26 17:31:08 +08:00
1 parent 4ce951dd56
commit 8a3dea8545
44 files changed
+1599 -30

No files matched your search

+10 -2
View File
@@ -1,7 +1,7 @@
package router
import (
"allapp/api/handler"
"allapp/api/handler/auth"
"allapp/config"
"github.com/gofiber/fiber/v3"
@@ -10,5 +10,13 @@ import (
func SetupRouters(app *fiber.App) {
api := app.Group(config.GetConf().Server.BaseUrl)
api.Get("/", handler.Hello)
public := api.Group("")
//private := api.Group("", middleware.Auth())
// auth
authRouter := public.Group("/auth")
authRouter.Post("/login/qq", auth.LoginQq)
authRouter.Post("/login/wechat", auth.LoginWechat)
// 其他的都带中间件
}