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