Skip to content

Commit

Permalink
Merge pull request #18 from dadav/fix_404
Browse files Browse the repository at this point in the history
Fix 404
  • Loading branch information
dadav authored Jul 23, 2024
2 parents 8bc8c8f + 6b78ec9 commit b83985f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ You can also enable the caching functionality to speed things up.`,

r := chi.NewRouter()

// Logger should come before any middleware that modifies the response
r.Use(middleware.Logger)
// Recoverer should also be pretty high in the middleware stack
r.Use(middleware.Recoverer)
r.Use(middleware.RealIP)
r.Use(customMiddleware.RequireUserAgent)
Expand Down Expand Up @@ -200,7 +197,7 @@ You can also enable the caching functionality to speed things up.`,
openapi.NewUserOperationsAPIController(userService),
)

r.Mount("/v3", apiRouter)
r.Mount("/", apiRouter)
})

r.Get("/readyz", func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit b83985f

Please sign in to comment.