Put API behind /api

This commit is contained in:
2025-01-14 12:40:30 +01:00
parent 88790bdec2
commit 3c2d45083f
3 changed files with 12 additions and 11 deletions

View File

@ -24,6 +24,7 @@ func (app *application) routes() http.Handler {
api.HandlerWithOptions(app, api.StdHTTPServerOptions{
BaseRouter: mux,
BaseURL: "/api",
ErrorHandlerFunc: app.badRequestError,
})