feat: 结构整理-调整路由与监听顺序

This commit is contained in:
liuhaotian 2021-12-14 14:41:32 +08:00
parent e321686d4b
commit 35d31821da

View File

@ -74,8 +74,8 @@ func serverStart() {
} }
func main() { func main() {
serverStart()
app.Get("/*", func(ctx *fiber.Ctx) error { app.Get("/*", func(ctx *fiber.Ctx) error {
return handlerMap[ctx.Path()](ctx, mysqlMap) return handlerMap[ctx.Path()](ctx, mysqlMap)
}) })
serverStart()
} }