We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f354acf commit 2006f76Copy full SHA for 2006f76
1 file changed
src/memos/api/server_api.py
@@ -29,6 +29,16 @@
29
# Include routers
30
app.include_router(server_router)
31
32
+
33
+@app.get("/health")
34
+def health_check():
35
+ """Container and load balancer health endpoint."""
36
+ return {
37
+ "status": "healthy",
38
+ "service": "memos",
39
+ "version": app.version,
40
+ }
41
42
# Request validation failed
43
app.exception_handler(RequestValidationError)(APIExceptionHandler.validation_error_handler)
44
# Invalid business code parameters
0 commit comments