This message was deleted.
# ask-for-help
s
This message was deleted.
b
@Smiral currently we recommend to use fastapi or flask to create get endpoint
s
I wanted to have a custom health check endpoint instead of default one, I don't think I could override the health endpoint hence wanted to create a get method endpoint for the same.
f
Maybe something like this?
```@svc.api(input=JSON(), output=JSON())
def health(input):
return {"status": "ok"} ```
b
@Smiral you can also try with middleware. Here is an example from conversation in github issue: https://github.com/bentoml/BentoML/issues/2630
✅ 1
s
@FIRAT TAMUR i want a get method not a post
Thanks @Bo will try