16 lines
304 B
Python
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,},
|
|
)
|