File size: 291 Bytes
5434ea5 0a5f589 1d3257d e63ff3b 0a5f589 7e320e6 0a5f589 9b437d0 5434ea5 f3bdb49 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from fastapi import FastAPI, Body
import games.game_util as game_util
app = FastAPI()
@app.get("/")
async def root():
return {"message": "PGAI API"}
@app.post("/nlp")
def test(game: str=Body(), token: str=Body(), command: str=Body()):
return game_util.nlp(game, token, command)
|