package router import ( "allapp-go/internal/config" "allapp-go/internal/handle" "github.com/gofiber/fiber/v3" ) func SetupRouter(app *fiber.App, cfg *config.Config) { api := app.Group(cfg.App.BaseUrl) // ==================== data ==================== api.Post("/data/loadData", handle.LoadData) api.Post("/data/loadDataBySql", handle.LoadDataBySql) api.Post("/data/saveData", handle.SaveData) api.Post("/auth/login/qq", handle.LoginQq) api.Post("/auth/login/wechat", handle.LoginWechat) }