fix(server): register user OAuth client routes in server.py Route list (404 fix)
This commit is contained in:
21
server.py
21
server.py
@@ -108,6 +108,10 @@ from core.dashboard.routes import (
|
||||
# E.3: Site Management pages
|
||||
dashboard_sites_add,
|
||||
dashboard_sites_list,
|
||||
# Bug C: User OAuth client routes
|
||||
dashboard_user_oauth_clients_create,
|
||||
dashboard_user_oauth_clients_delete,
|
||||
dashboard_user_oauth_clients_list,
|
||||
)
|
||||
from core.database import get_database, initialize_database
|
||||
from core.i18n import detect_language, get_all_translations
|
||||
@@ -4789,6 +4793,12 @@ def create_multi_endpoint_app(transport: str = "streamable-http"):
|
||||
Route("/dashboard/profile", dashboard_profile_page, methods=["GET"]),
|
||||
Route("/dashboard/sites/add", dashboard_sites_add, methods=["GET"]),
|
||||
Route("/dashboard/sites", dashboard_sites_list, methods=["GET"]),
|
||||
# Bug C: User OAuth client routes (must be before /dashboard/connect)
|
||||
Route(
|
||||
"/dashboard/connect/oauth-clients",
|
||||
dashboard_user_oauth_clients_list,
|
||||
methods=["GET"],
|
||||
),
|
||||
Route("/dashboard/connect", dashboard_connect_page, methods=["GET"]),
|
||||
Route("/dashboard", dashboard_home, methods=["GET"]),
|
||||
Route("/dashboard/", dashboard_home, methods=["GET"]),
|
||||
@@ -4825,6 +4835,17 @@ def create_multi_endpoint_app(transport: str = "streamable-http"):
|
||||
dashboard_oauth_clients_delete,
|
||||
methods=["DELETE"],
|
||||
),
|
||||
# Bug C: User OAuth client API routes
|
||||
Route(
|
||||
"/api/dashboard/user-oauth-clients/create",
|
||||
dashboard_user_oauth_clients_create,
|
||||
methods=["POST"],
|
||||
),
|
||||
Route(
|
||||
"/api/dashboard/user-oauth-clients/{client_id}",
|
||||
dashboard_user_oauth_clients_delete,
|
||||
methods=["DELETE"],
|
||||
),
|
||||
# Dashboard Audit Logs routes (Phase K.4)
|
||||
Route("/dashboard/audit-logs", dashboard_audit_logs_list, methods=["GET"]),
|
||||
Route("/api/dashboard/audit-logs", dashboard_api_audit_logs, methods=["GET"]),
|
||||
|
||||
Reference in New Issue
Block a user