Routstr
-Admin Dashboard
-- Monitor and manage wallet balances -
-diff --git a/routstr/core/main.py b/routstr/core/main.py index 1af4315e..a4a36154 100644 --- a/routstr/core/main.py +++ b/routstr/core/main.py @@ -204,38 +204,31 @@ if UI_DIST_PATH.exists() and UI_DIST_PATH.is_dir(): return FileResponse(UI_DIST_PATH / "index.html") @app.get("/dashboard", include_in_schema=False) - @app.get("/dashboard/{path:path}", include_in_schema=False) - async def serve_dashboard_ui(path: str = "") -> FileResponse: + async def serve_dashboard_ui() -> FileResponse: return FileResponse(UI_DIST_PATH / "index.html") @app.get("/login", include_in_schema=False) - @app.get("/login/{path:path}", include_in_schema=False) - async def serve_login_ui(path: str = "") -> FileResponse: + async def serve_login_ui() -> FileResponse: return FileResponse(UI_DIST_PATH / "login" / "index.html") - @app.get("/models", include_in_schema=False) - @app.get("/models/{path:path}", include_in_schema=False) - async def serve_models_ui(path: str = "") -> FileResponse: - return FileResponse(UI_DIST_PATH / "models" / "index.html") + @app.get("/model", include_in_schema=False) + async def serve_models_ui() -> FileResponse: + return FileResponse(UI_DIST_PATH / "model" / "index.html") @app.get("/providers", include_in_schema=False) - @app.get("/providers/{path:path}", include_in_schema=False) - async def serve_providers_ui(path: str = "") -> FileResponse: + async def serve_providers_ui() -> FileResponse: return FileResponse(UI_DIST_PATH / "providers" / "index.html") @app.get("/settings", include_in_schema=False) - @app.get("/settings/{path:path}", include_in_schema=False) - async def serve_settings_ui(path: str = "") -> FileResponse: + async def serve_settings_ui() -> FileResponse: return FileResponse(UI_DIST_PATH / "settings" / "index.html") @app.get("/transactions", include_in_schema=False) - @app.get("/transactions/{path:path}", include_in_schema=False) - async def serve_transactions_ui(path: str = "") -> FileResponse: + async def serve_transactions_ui() -> FileResponse: return FileResponse(UI_DIST_PATH / "transactions" / "index.html") @app.get("/unauthorized", include_in_schema=False) - @app.get("/unauthorized/{path:path}", include_in_schema=False) - async def serve_unauthorized_ui(path: str = "") -> FileResponse: + async def serve_unauthorized_ui() -> FileResponse: return FileResponse(UI_DIST_PATH / "unauthorized" / "index.html") @app.get("/favicon.ico", include_in_schema=False) diff --git a/ui/app/models/page.tsx b/ui/app/model/page.tsx similarity index 100% rename from ui/app/models/page.tsx rename to ui/app/model/page.tsx diff --git a/ui/components/ApiEndpointTester.tsx b/ui/components/ApiEndpointTester.tsx index ef7ad0c1..1a0cf81e 100644 --- a/ui/components/ApiEndpointTester.tsx +++ b/ui/components/ApiEndpointTester.tsx @@ -87,7 +87,7 @@ const API_ENDPOINTS = { }, models: { name: 'List Models', - path: '/models', + path: '/model', icon: List, description: 'List all available models from the provider', }, diff --git a/ui/components/app-sidebar.tsx b/ui/components/app-sidebar.tsx index a8af2e9f..d09d2c84 100644 --- a/ui/components/app-sidebar.tsx +++ b/ui/components/app-sidebar.tsx @@ -36,7 +36,7 @@ const data = { }, { title: 'Models', - url: '/models', + url: '/model', icon: DatabaseIcon, }, { diff --git a/ui/out/404.html b/ui/out/404.html index 0789b39e..70b1d784 100644 --- a/ui/out/404.html +++ b/ui/out/404.html @@ -1,189 +1 @@ - - -
- - - - - - - - - - - - - - - - -