irt-service/app/main.py
2021-08-12 15:13:05 -04:00

23 lines
505 B
Python

from fastapi import FastAPI, __version__
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Welcome to Measures LOFT solver service. v0.1"}
@app.get("/health")
async def health():
content = {
"maintainer": "Meazure Horizon Team",
"git_repo": "https://github.com/yardstick/measure-solver",
"server": "OK",
"fastapi version": __version__,
"app version": "0.1.0"
}
return content
@app.get('/ready')
async def ready():
return 'OK' # just means we're on air