Skip to content

Commit

Permalink
refactor(application): rename setupRoutes to setupWeb
Browse files Browse the repository at this point in the history
  • Loading branch information
utilyre committed Mar 2, 2024
1 parent f58a1c5 commit 0a228d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func New(cfg config.Config) *Application {
}

func (app *Application) Setup() *Application {
app.setupRoutes()
app.setupWeb()
return app
}

Expand Down
2 changes: 1 addition & 1 deletion application/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/utilyre/ex/middleware"
)

func (app *Application) setupRoutes() {
func (app *Application) setupWeb() {
app.router.Use(middleware.NewLogger(app.logger))
app.router.Use(middleware.NewRecoverer())

Expand Down

0 comments on commit 0a228d5

Please sign in to comment.