Skip to content

Commit 9aabf64

Browse files
committed
fix: move profile_router registration before frontend catch-all route to fix shadowed endpoints (#563)
1 parent bf9d1db commit 9aabf64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ async def unhandled_exception_handler(request: Request, exc: Exception):
192192
app.include_router(admin_router, prefix="/api/v1")
193193
app.include_router(workspaces_router, prefix="/api/v1")
194194
app.include_router(health_router, prefix="/api/v1")
195+
app.include_router(profile_router)
195196

196197
setup_prometheus_metrics(app)
197198

@@ -294,4 +295,3 @@ def root():
294295
"docs": "/docs",
295296
"health": "/api/health",
296297
}
297-
app.include_router(profile_router)

0 commit comments

Comments
 (0)