Refactor backend and add registry build workflow
Build and publish Docker image / build-and-publish (push) Successful in 2m45s
Build and publish Docker image / build-and-publish (push) Successful in 2m45s
This commit is contained in:
commit
c177d7981d
43 files changed
+18124
No files matched your search
@@ -0,0 +1,29 @@
|
||||
"""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)
|
||||
Reference in new issue
Block a user