mirror of
				https://github.com/bunny-lab-io/Borealis.git
				synced 2025-10-26 15:41:58 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| """HTTP interface registration for the Borealis Engine."""
 | |
| 
 | |
| from __future__ import annotations
 | |
| 
 | |
| from flask import Flask
 | |
| 
 | |
| from Data.Engine.services.container import EngineServiceContainer
 | |
| 
 | |
| from . import (
 | |
|     admin,
 | |
|     agents,
 | |
|     auth,
 | |
|     enrollment,
 | |
|     github,
 | |
|     health,
 | |
|     job_management,
 | |
|     tokens,
 | |
|     users,
 | |
|     sites,
 | |
|     devices,
 | |
|     credentials,
 | |
|     assemblies,
 | |
|     server_info,
 | |
| )
 | |
| 
 | |
| _REGISTRARS = (
 | |
|     health.register,
 | |
|     agents.register,
 | |
|     enrollment.register,
 | |
|     tokens.register,
 | |
|     job_management.register,
 | |
|     github.register,
 | |
|     auth.register,
 | |
|     admin.register,
 | |
|     users.register,
 | |
|     sites.register,
 | |
|     devices.register,
 | |
|     credentials.register,
 | |
|     assemblies.register,
 | |
|     server_info.register,
 | |
| )
 | |
| 
 | |
| 
 | |
| 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, services)
 | |
| 
 | |
| 
 | |
| __all__ = ["register_http_interfaces"]
 |