This commit is contained in:
oneao committed 2026-04-16 21:29:38 +08:00
1 parent 6300778150
commit e893ef2e48
27 files changed
+870 -33

No files matched your search

@@ -1,14 +1,20 @@
package router
import (
"allapp-go/internal/config"
"allapp-go/internal/handle"
"github.com/gofiber/fiber/v3"
)
func SetupRouter(app *fiber.App) {
func SetupRouter(app *fiber.App, cfg *config.Config) {
api := app.Group(cfg.App.BaseUrl)
// ==================== data ====================
app.Post("/data/loadData", handle.LoadData)
app.Post("/data/loadDataBySql", handle.LoadDataBySql)
app.Post("/data/saveData", handle.SaveData)
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)
}