diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-17 11:11:41 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-17 11:11:41 +0300 |
| commit | f133acf8a1ec5b797b48e3d9224baea631a2a85c (patch) | |
| tree | 3013b68cfff3805e8dcd2d9172b6ca7468b86432 /main.go | |
| parent | Merge branch 'main' of https://github.com/pektezol/LeastPortals (diff) | |
| download | lphub-f133acf8a1ec5b797b48e3d9224baea631a2a85c.tar.gz lphub-f133acf8a1ec5b797b48e3d9224baea631a2a85c.tar.bz2 lphub-f133acf8a1ec5b797b48e3d9224baea631a2a85c.zip | |
feat: update main
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 2 |
1 files changed, 0 insertions, 2 deletions
| @@ -31,8 +31,6 @@ func main() { | |||
| 31 | } | 31 | } |
| 32 | router := gin.Default() | 32 | router := gin.Default() |
| 33 | database.ConnectDB() | 33 | database.ConnectDB() |
| 34 | // For frontend static serving - only for local debug | ||
| 35 | // router.Use(static.Serve("/", static.LocalFile("./frontend/build", true))) | ||
| 36 | routes.InitRoutes(router) | 34 | routes.InitRoutes(router) |
| 37 | router.Run(fmt.Sprintf(":%s", os.Getenv("PORT"))) | 35 | router.Run(fmt.Sprintf(":%s", os.Getenv("PORT"))) |
| 38 | } | 36 | } |