Skip to content

Commit c10fd58

Browse files
committed
Add simple readiness check
1 parent c6af913 commit c10fd58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packet/routes/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ def upperclassman_stats(uid):
208208
return stats.upperclassman_stats(uid)
209209

210210

211+
@app.route('/readiness')
212+
def readiness() -> tuple[str, int]:
213+
'''A basic healthcheck. Returns 200 to indicate flask is running'''
214+
return "ready", 200
215+
216+
211217
def commit_sig(packet, was_100, uid):
212218
packet_signed_notification(packet, uid)
213219
db.session.commit()

0 commit comments

Comments
 (0)