refactor: controllers and routes

This commit is contained in:
2025-06-17 20:20:03 +03:00
parent 0b03c6ad90
commit 367647a8df
3 changed files with 11 additions and 10 deletions

View File

@@ -5,12 +5,11 @@ import (
"easywish/config"
"easywish/internal/logger"
"easywish/internal/controllers/serviceController"
"easywish/internal/routes"
)
func main() {
// Load the configuration
if err := config.LoadConfig(); err != nil {
panic(err)
}
@@ -18,7 +17,7 @@ func main() {
defer logger.Sync()
r := gin.Default()
serviceController.SetupRoutes(r)
r.Run()
r = routes.SetupRoutes(r)
r.Run(":8080")
}