Skip to content

Commit 68d97f6

Browse files
committed
fix: move profile_router registration before frontend catch-all route to fix shadowed endpoints (#563)
1 parent 4f95ffb commit 68d97f6

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
@@ -250,6 +250,7 @@ async def unhandled_exception_handler(request: Request, exc: Exception):
250250
app.include_router(github_router, prefix="/api/v1")
251251
app.include_router(admin_router, prefix="/api/v1")
252252
app.include_router(workspaces_router, prefix="/api/v1")
253+
app.include_router(profile_router)
253254

254255
setup_prometheus_metrics(app)
255256

@@ -352,4 +353,3 @@ def root():
352353
"docs": "/docs",
353354
"health": "/api/health",
354355
}
355-
app.include_router(profile_router)

0 commit comments

Comments
 (0)