Commit ecfba286 authored by Pukky's avatar Pukky

fix twice connect

parent 3c5f3418
package main
import (
"fiber-mongo-api/configs"
"fiber-mongo-api/routes" //add this
"github.com/gofiber/fiber/v2"
......@@ -24,9 +23,6 @@ func main() {
})
})
//run database
configs.ConnectDB()
//routes
routes.MenuRoute(app) //add this
routes.CategoryRoute(app)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment