Files
litestar-machines-test/app/controllers/__init__.py
2023-08-27 11:08:14 +02:00

22 lines
573 B
Python

from litestar import Router
from app.controllers.fiscal_payment_mapping import FiscalPaymentMappingController
from app.controllers.machine import MachineController
from app.domain.machine import Machine
__all__ = ["create_router"]
def create_router() -> Router:
return Router(
path="/v1",
route_handlers=[
MachineController,
FiscalPaymentMappingController,
],
signature_namespace={
"Machine": Machine,
"FiscalPaymentMappingController": FiscalPaymentMappingController,
},
)