30 lines
832 B
Python
30 lines
832 B
Python
"""Blueprint registration for the AnchorHost HTTP API."""
|
|
|
|
from flask import Flask
|
|
|
|
from .account import bp as account_blueprint
|
|
from .admin import bp as admin_blueprint
|
|
from .auth import bp as auth_blueprint
|
|
from .billing import bp as billing_blueprint
|
|
from .domains import bp as domains_blueprint
|
|
from .public import bp as public_blueprint
|
|
from .servers import bp as servers_blueprint
|
|
from .tickets import bp as tickets_blueprint
|
|
|
|
BLUEPRINTS = (
|
|
account_blueprint,
|
|
admin_blueprint,
|
|
auth_blueprint,
|
|
billing_blueprint,
|
|
domains_blueprint,
|
|
public_blueprint,
|
|
servers_blueprint,
|
|
tickets_blueprint,
|
|
)
|
|
|
|
|
|
def register_routes(application: Flask) -> None:
|
|
"""Register all HTTP API blueprints on the supplied Flask app."""
|
|
for blueprint in BLUEPRINTS:
|
|
application.register_blueprint(blueprint)
|