system-pri/backend/app/api.py

12 lines
409 B
Python

from flask import Blueprint
from .coordinator.routes import bp as coordinator_bp
from .project_supervisor.routes import bp as project_supervisor_bp
from .students.routes import bp as students_bp
api_bp = Blueprint('api', __name__, url_prefix='/api')
# register blueprints here
api_bp.register_blueprint(coordinator_bp)
api_bp.register_blueprint(project_supervisor_bp)
api_bp.register_blueprint(students_bp)