didodev commited on
Commit
34995f6
·
1 Parent(s): 6f274c1

Add healthcheck root route

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -7,6 +7,9 @@ from fastapi import FastAPI, UploadFile, File
7
  from fastapi.responses import JSONResponse
8
 
9
  app = FastAPI(title="iRecite MVP API")
 
 
 
10
 
11
  WORKDIR = os.path.dirname(os.path.abspath(__file__))
12
  PYTHON = os.path.join(WORKDIR, ".venv", "Scripts", "python.exe")
 
7
  from fastapi.responses import JSONResponse
8
 
9
  app = FastAPI(title="iRecite MVP API")
10
+ @app.get("/")
11
+ def root():
12
+ return {"status": "ok", "message": "iRecite MVP API is running. Go to /docs"}
13
 
14
  WORKDIR = os.path.dirname(os.path.abspath(__file__))
15
  PYTHON = os.path.join(WORKDIR, ".venv", "Scripts", "python.exe")