Routstr
-Admin Dashboard
-- Monitor and manage wallet balances -
-From 86e4b99297824dc6fd558964e09c346a8da271b7 Mon Sep 17 00:00:00 2001 From: 9qeklajc <9qeklajc> Date: Fri, 24 Oct 2025 17:18:18 +0200 Subject: [PATCH] use different endpoint for models --- routstr/core/main.py | 25 +- ui/app/{models => model}/page.tsx | 0 ui/components/ApiEndpointTester.tsx | 2 +- ui/components/app-sidebar.tsx | 2 +- ui/out/404.html | 190 +- ui/out/404/index.html | 190 +- .../_u9DN04e_S8ExBb9NTqK6/_buildManifest.js | 1 + .../_u9DN04e_S8ExBb9NTqK6/_ssgManifest.js | 1 + .../static/chunks/222-4bb848975c01d467.js | 1424 +- .../static/chunks/230-c1944b44cc70d7f6.js | 5052 ------- .../static/chunks/236-7aedbfc1345ecc2c.js | 1055 -- .../static/chunks/236-ba64522839e788ad.js | 1 + .../static/chunks/255-a44a63a7b4273784.js | 727 +- .../static/chunks/29-e3557fb1dd82bdc3.js | 932 +- .../static/chunks/363-119b32fca35baa33.js | 8119 +--------- .../static/chunks/481-48cd0f8fe547e418.js | 1495 +- .../static/chunks/497-baf4d54bf6b2d14c.js | 10010 +----------- .../static/chunks/552-841e72e83992f2f1.js | 5202 ------- .../static/chunks/578-9e08cd45b1eda688.js | 773 +- .../static/chunks/651-4a58f299a4aa4df7.js | 488 +- .../chunks/65b78783-abd88d9e33bb3ce1.js | 11145 +------------- .../static/chunks/730-892209af1fa345bd.js | 521 +- .../static/chunks/808-6da586a06e4a6738.js | 1 + .../static/chunks/938-08cea0300e0df70a.js | 1 + .../static/chunks/978-cd938190a9f5efa7.js | 147 +- .../static/chunks/982-5588ad0e30e6255e.js | 569 +- .../app/_not-found/page-c90bc08830eb0233.js | 114 +- .../chunks/app/layout-1e4148ea2d359141.js | 427 +- .../chunks/app/login/page-9d2abe7b74a0707f.js | 556 +- .../chunks/app/model/page-4ce4600f8084e92f.js | 1 + .../app/models/page-fc2b83cb8d074990.js | 6684 -------- .../chunks/app/page-76f981cd7e1df93a.js | 1046 -- .../chunks/app/page-cbf91667e39e2dcb.js | 1 + .../app/providers/page-284d295c40b8f18c.js | 1 + .../app/providers/page-ac672d4dcee2ea73.js | 1384 -- .../app/settings/page-7a8d2e07b1fd6500.js | 856 -- .../app/settings/page-a90352a6b8bf0df3.js | 1 + .../app/transactions/page-114770ed3af4ceb6.js | 1 + .../app/transactions/page-f13c39dc3321eaf7.js | 626 - .../app/unauthorized/page-bd10c76db4782139.js | 223 +- .../chunks/framework-8c3b2116d10b4580.js | 12600 +--------------- .../static/chunks/main-0a7596aef9908400.js | 6832 +-------- .../chunks/main-app-17707ee50e50ea2f.js | 21 +- .../chunks/pages/_app-061aa32ebf2d84a0.js | 18 +- .../chunks/pages/_error-37aa057e76496f5c.js | 18 +- .../chunks/polyfills-42372ed130431b0a.js | 7953 +--------- .../static/chunks/webpack-a88517f6dce11b25.js | 210 +- ui/out/_next/static/css/1ff89cf1c6e3d515.css | 5195 ------- ui/out/_next/static/css/de70bee13400563f.css | 95 +- ui/out/_next/static/css/df61eac67870ae59.css | 1 + .../jGcbc9JLLod6sGrLDlUSi/_buildManifest.js | 196 - .../jGcbc9JLLod6sGrLDlUSi/_ssgManifest.js | 2 - ui/out/icon.ico | Bin 0 -> 15406 bytes ui/out/index.html | 568 +- ui/out/index.txt | 16 +- ui/out/login/index.html | 179 +- ui/out/login/index.txt | 6 +- ui/out/model/index.html | 1 + ui/out/model/index.txt | 26 + ui/out/models/index.html | 557 - ui/out/models/index.txt | 26 - ui/out/providers/index.html | 515 +- ui/out/providers/index.txt | 8 +- ui/out/settings/index.html | 529 +- ui/out/settings/index.txt | 8 +- ui/out/transactions/index.html | 513 +- ui/out/transactions/index.txt | 8 +- ui/out/unauthorized/index.html | 179 +- ui/out/unauthorized/index.txt | 6 +- 69 files changed, 107 insertions(+), 96173 deletions(-) rename ui/app/{models => model}/page.tsx (100%) create mode 100644 ui/out/_next/static/_u9DN04e_S8ExBb9NTqK6/_buildManifest.js create mode 100644 ui/out/_next/static/_u9DN04e_S8ExBb9NTqK6/_ssgManifest.js delete mode 100644 ui/out/_next/static/chunks/230-c1944b44cc70d7f6.js delete mode 100644 ui/out/_next/static/chunks/236-7aedbfc1345ecc2c.js create mode 100644 ui/out/_next/static/chunks/236-ba64522839e788ad.js delete mode 100644 ui/out/_next/static/chunks/552-841e72e83992f2f1.js create mode 100644 ui/out/_next/static/chunks/808-6da586a06e4a6738.js create mode 100644 ui/out/_next/static/chunks/938-08cea0300e0df70a.js create mode 100644 ui/out/_next/static/chunks/app/model/page-4ce4600f8084e92f.js delete mode 100644 ui/out/_next/static/chunks/app/models/page-fc2b83cb8d074990.js delete mode 100644 ui/out/_next/static/chunks/app/page-76f981cd7e1df93a.js create mode 100644 ui/out/_next/static/chunks/app/page-cbf91667e39e2dcb.js create mode 100644 ui/out/_next/static/chunks/app/providers/page-284d295c40b8f18c.js delete mode 100644 ui/out/_next/static/chunks/app/providers/page-ac672d4dcee2ea73.js delete mode 100644 ui/out/_next/static/chunks/app/settings/page-7a8d2e07b1fd6500.js create mode 100644 ui/out/_next/static/chunks/app/settings/page-a90352a6b8bf0df3.js create mode 100644 ui/out/_next/static/chunks/app/transactions/page-114770ed3af4ceb6.js delete mode 100644 ui/out/_next/static/chunks/app/transactions/page-f13c39dc3321eaf7.js delete mode 100644 ui/out/_next/static/css/1ff89cf1c6e3d515.css create mode 100644 ui/out/_next/static/css/df61eac67870ae59.css delete mode 100644 ui/out/_next/static/jGcbc9JLLod6sGrLDlUSi/_buildManifest.js delete mode 100644 ui/out/_next/static/jGcbc9JLLod6sGrLDlUSi/_ssgManifest.js create mode 100644 ui/out/icon.ico create mode 100644 ui/out/model/index.html create mode 100644 ui/out/model/index.txt delete mode 100644 ui/out/models/index.html delete mode 100644 ui/out/models/index.txt 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 @@ - - -
- - - - - - - - - - - - - - - - -