mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-12-14 04:06:35 +00:00
chore: rename setup routes to setup router
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user