| from fastapi import FastAPI, Body | |
| import games.game_util as game_util | |
| app = FastAPI() | |
| async def root(): | |
| return {"message": "PGAI API"} | |
| def test(game: str=Body(), token: str=Body(), command: str=Body()): | |
| return game_util.nlp(game, token, command) | |
| from fastapi import FastAPI, Body | |
| import games.game_util as game_util | |
| app = FastAPI() | |
| async def root(): | |
| return {"message": "PGAI API"} | |
| def test(game: str=Body(), token: str=Body(), command: str=Body()): | |
| return game_util.nlp(game, token, command) | |