add check affix to endpoints

This commit is contained in:
Josh Burman 2021-08-17 12:33:58 -04:00
parent 0dcb8459a6
commit e4efbe4c2d

View File

@ -6,7 +6,7 @@ app = FastAPI()
async def root():
return {"message": "Welcome to Measures LOFT solver service. v0.1"}
@app.get("/health")
@app.get("/healthcheck")
async def health():
content = {
"maintainer": "Meazure Horizon Team",
@ -17,6 +17,6 @@ async def health():
}
return content
@app.get('/ready')
@app.get('/readycheck')
async def ready():
return 'OK' # just means we're on air