Files
DashBoard/src/mes_dashboard/routes/__init__.py
beabigegg b5d63fb87d feat: 管理員認證系統與部署配置優化
Admin Authentication:
- 新增 LDAP 認證服務整合公司 AD API
- 新增頁面狀態管理 (released/dev)
- 非管理員無法存取 dev 狀態頁面
- Portal 動態顯示/隱藏 tabs 基於權限

Deployment Configuration:
- 更新 .env.example 包含所有環境變數
- start_server.sh 自動載入 .env 檔案
- 新增 deploy.sh 部署腳本

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 14:53:20 +08:00

34 lines
834 B
Python

# -*- coding: utf-8 -*-
"""API routes module for MES Dashboard.
Contains Flask Blueprints for different API endpoints.
"""
from .wip_routes import wip_bp
from .resource_routes import resource_bp
from .dashboard_routes import dashboard_bp
from .excel_query_routes import excel_query_bp
from .hold_routes import hold_bp
from .auth_routes import auth_bp
from .admin_routes import admin_bp
def register_routes(app) -> None:
"""Register all API blueprints on the Flask app."""
app.register_blueprint(wip_bp)
app.register_blueprint(resource_bp)
app.register_blueprint(dashboard_bp)
app.register_blueprint(excel_query_bp)
app.register_blueprint(hold_bp)
__all__ = [
'wip_bp',
'resource_bp',
'dashboard_bp',
'excel_query_bp',
'hold_bp',
'auth_bp',
'admin_bp',
'register_routes',
]