fix: remove empty-path GET decorator to avoid FastAPI prefix+path empty error
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
When dashboard router is mounted with prefix="" the @router.get("") route
causes FastAPIError: Prefix and path cannot be both empty.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,6 @@ from dashboard_cache import get_cached, is_warm
|
|||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
||||||
@router.get("")
|
|
||||||
@router.get("/")
|
@router.get("/")
|
||||||
async def dashboard_page(request: Request):
|
async def dashboard_page(request: Request):
|
||||||
config = request.app.state.config
|
config = request.app.state.config
|
||||||
|
|||||||
Reference in New Issue
Block a user