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

master
liuhaotian 2021-12-14 14:41:32 +08:00
parent e321686d4b
commit 35d31821da
1 changed files with 1 additions and 1 deletions

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()
} }