Files
litestar-machines-test/app/controllers/__init__.py
2023-08-26 14:38:33 +02:00

16 lines
304 B
Python

from litestar import Router
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,},
)