mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 19:21:58 -06:00
29 lines
581 B
Python
29 lines
581 B
Python
"""HTTP interface registration for the Borealis Engine."""
|
|
|
|
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*.
|
|
|
|
The implementation is intentionally minimal for the initial scaffolding.
|
|
"""
|
|
|
|
for registrar in _REGISTRARS:
|
|
registrar(app)
|
|
|
|
|
|
__all__ = ["register_http_interfaces"]
|