Open karlbernard2 opened 1 year ago
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: ...
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: ...