openvpn-endpoint-server/server/app/web/__init__.py

24 lines
1.0 KiB
Python

"""Web routes for browser-based UI using Jinja2 + HTMX."""
from fastapi import APIRouter
from . import auth, dashboard, gateways, users, tenants, applications, connections, htmx
from . import ca, vpn_servers, vpn_profiles
# Create web router
web_router = APIRouter()
# Include web route modules
web_router.include_router(auth.router, tags=["Web Auth"])
web_router.include_router(dashboard.router, tags=["Web Dashboard"])
web_router.include_router(gateways.router, tags=["Web Gateways"])
web_router.include_router(users.router, tags=["Web Users"])
web_router.include_router(tenants.router, tags=["Web Tenants"])
web_router.include_router(applications.router, tags=["Web Applications"])
web_router.include_router(connections.router, tags=["Web Connections"])
web_router.include_router(htmx.router, prefix="/htmx", tags=["HTMX Partials"])
# PKI & VPN Management
web_router.include_router(ca.router, tags=["Web CA"])
web_router.include_router(vpn_servers.router, tags=["Web VPN Servers"])
web_router.include_router(vpn_profiles.router, tags=["Web VPN Profiles"])