We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87733dc commit fdfce70Copy full SHA for fdfce70
main.py
@@ -1,4 +1,4 @@
1
-from fastapi import FastAPI, Response, status
+from fastapi import FastAPI, Response, status, responses
2
3
app = FastAPI()
4
@@ -28,3 +28,9 @@ def resolve_kratos_admin(body, response):
28
29
response.status_code = status.HTTP_403_FORBIDDEN
30
return {"status": "not authorized"}
31
+
32
33
+@app.get("/healthcheck")
34
+def healthcheck() -> responses.PlainTextResponse:
35
+ headers = {"APP": "OK"}
36
+ return responses.PlainTextResponse("OK", headers=headers)
0 commit comments