aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index f1490f9..d62ba62 100644
--- a/main.go
+++ b/main.go
@@ -1,8 +1,10 @@
1package main 1package main
2 2
3import ( 3import (
4 "github.com/gin-gonic/contrib/static"
4 "github.com/gin-gonic/gin" 5 "github.com/gin-gonic/gin"
5 "github.com/pektezol/leastportals/backend/controllers" 6 "github.com/pektezol/leastportals/backend/controllers"
7 "github.com/pektezol/leastportals/backend/routes"
6) 8)
7 9
8func main() { 10func main() {
@@ -10,5 +12,7 @@ func main() {
10 gin.SetMode(gin.ReleaseMode) 12 gin.SetMode(gin.ReleaseMode)
11 } 13 }
12 router := gin.Default() 14 router := gin.Default()
15 router.Use(static.Serve("/", static.LocalFile("./frontend/dist", true)))
16 routes.InitRoutes(router)
13 router.Run(":4000") 17 router.Run(":4000")
14} 18}