12 lines
202 B
Python
12 lines
202 B
Python
|
|
from fastapi import FastAPI
|
|
app = FastAPI()
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {"status":"UP"}
|
|
|
|
if __name__ == "__main__":
|
|
import uvicorn
|
|
uvicorn.run(app, host="0.0.0.0", port=7989)
|