-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi, I've been trying to use this project as an alternative to Fastapi, however I'm unable to setup multiple routes.
Is this suppose to work?
@app.handler('/health',gpu=False)
def handler(context: dict, request: Request) -> Response:
return Response(
json = {"health": 'OK'},
status=200
)
@app.handler('/',gpu=True)
def handler(context: dict, request: Request) -> Response:
...
Metadata
Metadata
Assignees
Labels
No labels