Skip to content

Commit 382e1d5

Browse files
authored
Merge pull request #22 from MoDeep11/fix/health-check
add health-check
2 parents bf19919 + 1351b8b commit 382e1d5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

server/app/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ async def upload_test():
6363
# print(a.decode())
6464
plt.imshow(Image.open(BytesIO(a)))
6565
plt.show()
66+
67+
@app.get("/health")
68+
async def health_check():
69+
return {"status": "ok"}
6670

6771
# 라우터 등록 및 정적 파일 설정
6872
app.mount("/static", StaticFiles(directory="static"), name="static")

0 commit comments

Comments
 (0)