Files
workspace/code/allapp/allapp-go/api/router/router.go
T
2026-02-26 17:31:08 +08:00

23 lines
439 B
Go

package router
import (
"allapp/api/handler/auth"
"allapp/config"
"github.com/gofiber/fiber/v3"
)
func SetupRouters(app *fiber.App) {
api := app.Group(config.GetConf().Server.BaseUrl)
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)
// 其他的都带中间件
}