We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5a840d commit 0d853bdCopy full SHA for 0d853bd
app.py
@@ -60,6 +60,12 @@ def rate_limit_exceeded_handler(
60
)
61
62
63
+@app.get("/v1/health")
64
+async def health() -> dict[str, str]:
65
+ """Endpoint to check if the service is alive."""
66
+ return {"status": "ok"}
67
+
68
69
@app.post("/v1")
70
@limiter.limit("60/minute")
71
async def index(request: Request) -> dict[str, object]:
@@ -81,6 +87,6 @@ async def index(request: Request) -> dict[str, object]:
81
87
) from None
82
88
83
89
return {
84
- "detail": "successfully linted",
90
+ "status": "success",
85
91
"data": [r.into_dict() for r in _lint(text)],
86
92
}
0 commit comments