This commit is contained in:
YouROK
2021-03-03 09:15:48 +03:00
parent 3abd799fb7
commit 78922b1eb4

View File

@@ -22,12 +22,11 @@ func Start(port string) {
waitChan <- err
return
}
route := gin.New()
route.Use(gin.Recovery(), cors.Default())
api.SetupRoute(route)
pages.SetupRoute(route)
log.TLogln("Start web", port)
waitChan <- route.Run(":" + port)
}