25 lines
609 B
Python
25 lines
609 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
API 模組
|
|
|
|
Author: PANJIT IT Team
|
|
Created: 2024-01-28
|
|
Modified: 2024-01-28
|
|
"""
|
|
|
|
from flask import Blueprint
|
|
|
|
# 建立 API Blueprint
|
|
api_v1 = Blueprint('api_v1', __name__, url_prefix='/api/v1')
|
|
|
|
# 匯入各 API 模組
|
|
from . import auth, jobs, files, admin, health, notification
|
|
|
|
# 註冊路由
|
|
api_v1.register_blueprint(auth.auth_bp)
|
|
api_v1.register_blueprint(jobs.jobs_bp)
|
|
api_v1.register_blueprint(files.files_bp)
|
|
api_v1.register_blueprint(admin.admin_bp)
|
|
api_v1.register_blueprint(health.health_bp)
|
|
api_v1.register_blueprint(notification.notification_bp) |