From 2932aba750bd9f47f20fafc29767da1ca5718561 Mon Sep 17 00:00:00 2001 From: Stavros Date: Sat, 13 Dec 2025 16:02:14 +0200 Subject: [PATCH] chore: rename setup routes to setup router --- internal/bootstrap/app_bootstrap.go | 4 ++-- internal/bootstrap/{routes_boostrap.go => router_boostrap.go} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename internal/bootstrap/{routes_boostrap.go => router_boostrap.go} (98%) diff --git a/internal/bootstrap/app_bootstrap.go b/internal/bootstrap/app_bootstrap.go index ff7f974..d470a9d 100644 --- a/internal/bootstrap/app_bootstrap.go +++ b/internal/bootstrap/app_bootstrap.go @@ -124,8 +124,8 @@ func (app *BootstrapApp) Setup() error { return fmt.Errorf("no authentication providers configured") } - // Setup routes - engine, err := app.setupRoutes() + // Setup router + engine, err := app.setupRouter() if err != nil { return fmt.Errorf("failed to setup routes: %w", err) diff --git a/internal/bootstrap/routes_boostrap.go b/internal/bootstrap/router_boostrap.go similarity index 98% rename from internal/bootstrap/routes_boostrap.go rename to internal/bootstrap/router_boostrap.go index dc99886..554becb 100644 --- a/internal/bootstrap/routes_boostrap.go +++ b/internal/bootstrap/router_boostrap.go @@ -9,7 +9,7 @@ import ( "github.com/gin-gonic/gin" ) -func (app *BootstrapApp) setupRoutes() (*gin.Engine, error) { +func (app *BootstrapApp) setupRouter() (*gin.Engine, error) { engine := gin.New() engine.Use(gin.Recovery())