15 lines
245 B
Python
15 lines
245 B
Python
from fastapi import FastAPI
|
|
from .strategy import decide
|
|
|
|
app = FastAPI(docs_url=None, redoc_url=None)
|
|
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {"ready": True}
|
|
|
|
|
|
@app.post("/decide")
|
|
def evaluate(payload: dict):
|
|
return decide(payload)
|