mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-12-18 21:55:48 -07:00
Scaffold Engine application interfaces
This commit is contained in:
@@ -4,6 +4,16 @@ from __future__ import annotations
|
||||
|
||||
from flask import Flask
|
||||
|
||||
from . import admin, agents, enrollment, health, tokens
|
||||
|
||||
_REGISTRARS = (
|
||||
health.register,
|
||||
agents.register,
|
||||
enrollment.register,
|
||||
tokens.register,
|
||||
admin.register,
|
||||
)
|
||||
|
||||
|
||||
def register_http_interfaces(app: Flask) -> None:
|
||||
"""Attach HTTP blueprints to *app*.
|
||||
@@ -11,8 +21,8 @@ def register_http_interfaces(app: Flask) -> None:
|
||||
The implementation is intentionally minimal for the initial scaffolding.
|
||||
"""
|
||||
|
||||
# Future phases will import and register blueprints here.
|
||||
return None
|
||||
for registrar in _REGISTRARS:
|
||||
registrar(app)
|
||||
|
||||
|
||||
__all__ = ["register_http_interfaces"]
|
||||
|
||||
Reference in New Issue
Block a user