add check affix to endpoints
This commit is contained in:
parent
0dcb8459a6
commit
e4efbe4c2d
@ -6,7 +6,7 @@ app = FastAPI()
|
|||||||
async def root():
|
async def root():
|
||||||
return {"message": "Welcome to Measures LOFT solver service. v0.1"}
|
return {"message": "Welcome to Measures LOFT solver service. v0.1"}
|
||||||
|
|
||||||
@app.get("/health")
|
@app.get("/healthcheck")
|
||||||
async def health():
|
async def health():
|
||||||
content = {
|
content = {
|
||||||
"maintainer": "Meazure Horizon Team",
|
"maintainer": "Meazure Horizon Team",
|
||||||
@ -17,6 +17,6 @@ async def health():
|
|||||||
}
|
}
|
||||||
return content
|
return content
|
||||||
|
|
||||||
@app.get('/ready')
|
@app.get('/readycheck')
|
||||||
async def ready():
|
async def ready():
|
||||||
return 'OK' # just means we're on air
|
return 'OK' # just means we're on air
|
||||||
|
Loading…
x
Reference in New Issue
Block a user