Skip to content

Commit d484fb0

Browse files
fix: switch to json dumps for health
1 parent 80d927a commit d484fb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import logging
6+
import json
67

78
from nicegui import app, ui
89

@@ -41,7 +42,7 @@ def stream_page():
4142

4243
@app.get("/health")
4344
def health():
44-
return {"health": "ok"}
45+
return json.dumps({"health": "ok"})
4546

4647

4748
def init_routes():

0 commit comments

Comments
 (0)