Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/memos/api/server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
# Include routers
app.include_router(server_router)


@app.get("/health")
def health_check():
"""Container and load balancer health endpoint."""
return {
"status": "healthy",
"service": "memos",
"version": app.version,
}

# Request validation failed
app.exception_handler(RequestValidationError)(APIExceptionHandler.validation_error_handler)
# Invalid business code parameters
Expand Down