From 1b346f56a7c3f0ed0fbca1c01651f64a89203fed Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 24 Oct 2022 00:41:21 +0300 Subject: add database integration --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index d62ba62..21786e8 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "github.com/gin-gonic/contrib/static" "github.com/gin-gonic/gin" "github.com/pektezol/leastportals/backend/controllers" + "github.com/pektezol/leastportals/backend/database" "github.com/pektezol/leastportals/backend/routes" ) @@ -12,6 +13,7 @@ func main() { gin.SetMode(gin.ReleaseMode) } router := gin.Default() + database.ConnectDB() router.Use(static.Serve("/", static.LocalFile("./frontend/dist", true))) routes.InitRoutes(router) router.Run(":4000") -- cgit v1.2.3