Improved API endpoint ordering

This commit is contained in:
Matthias 2024-05-12 09:03:58 +02:00
parent 1989973439
commit 0279cf5fed

View File

@ -125,6 +125,7 @@ class ApiServer(RPCHandler):
app.include_router(api_v1_public, prefix="/api/v1")
app.include_router(router_login, prefix="/api/v1", tags=["auth"])
app.include_router(api_v1, prefix="/api/v1",
dependencies=[Depends(http_basic_or_jwt_token)],
)
@ -137,7 +138,6 @@ class ApiServer(RPCHandler):
Depends(is_webserver_mode)],
)
app.include_router(ws_router, prefix="/api/v1")
app.include_router(router_login, prefix="/api/v1", tags=["auth"])
# UI Router MUST be last!
app.include_router(router_ui, prefix='')