From f1b7589b2936335957a6a1da1eea3d66233ad0ce Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sat, 26 Aug 2023 08:53:24 +0300 Subject: refactor: reorganizing packages Former-commit-id: 99410223654c2a5ffc15fdab6ec3e921b5410cba --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 69f7c86..868db1e 100644 --- a/main.go +++ b/main.go @@ -7,8 +7,8 @@ import ( "github.com/gin-gonic/gin" "github.com/joho/godotenv" + "github.com/pektezol/leastportalshub/backend/api" "github.com/pektezol/leastportalshub/backend/database" - "github.com/pektezol/leastportalshub/backend/routes" _ "github.com/pektezol/leastportalshub/docs" ) @@ -19,8 +19,8 @@ import ( // @license.name GNU General Public License, Version 2 // @license.url https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -// @host lp.ardapektezol.com/api -// @BasePath /v1 +// @host lp.ardapektezol.com/api +// @BasePath /v1 func main() { if os.Getenv("ENV") == "PROD" { gin.SetMode(gin.ReleaseMode) @@ -31,6 +31,6 @@ func main() { } router := gin.Default() database.ConnectDB() - routes.InitRoutes(router) + api.InitRoutes(router) router.Run(fmt.Sprintf(":%s", os.Getenv("PORT"))) } -- cgit v1.2.3