Backend: - Add auth.py for JWT token verification - Update main.py to protect all routes with auth middleware - Remove dashboard router (frontend handles aggregation) - Add Docker support with Dockerfile and docker-compose.yml Frontend: - Add OIDC authentication using oidc-client-ts with PKCE flow - Create router.js with auth guards for automatic login/logout - Add api.js for unified Axios instance with auth headers - Add composables: useAuth.js, useVehicleData.js for caching - Add views/Main.vue as main application page - Simplify App.vue to router-view container - Add deploy-web.sh deployment script Documentation: - Update AGENTS.md with new architecture and auth flow
20 lines
478 B
Python
20 lines
478 B
Python
"""
|
|
路由模块统一导出
|
|
|
|
使用示例:
|
|
from routers import vehicles_router, fuel_records_router, costs_router
|
|
|
|
app.include_router(vehicles_router, prefix="/carcost")
|
|
app.include_router(fuel_records_router, prefix="/carcost")
|
|
"""
|
|
|
|
from .vehicles import router as vehicles_router
|
|
from .fuel_records import router as fuel_records_router
|
|
from .costs import router as costs_router
|
|
|
|
__all__ = [
|
|
"vehicles_router",
|
|
"fuel_records_router",
|
|
"costs_router",
|
|
]
|