Working version

This commit is contained in:
Eden Kirin
2023-08-27 11:08:14 +02:00
parent 9faca36ce1
commit eb37f09a44
6 changed files with 175 additions and 6 deletions

View File

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