Infinigence/Megrez-3B-Omni
Updated
•
485
•
115
POST /api/games
- Create a new gameGET /api/games/:gameId
- Get the current game statePOST /api/games/:gameId/move
- Make a move (up, down, left, right)DELETE /api/games/:gameId
- Delete a gameGET /api/games/:gameId/image
- Generate an image of the game boardcurl -X POST -H "Content-Type: application/json" -d '{"size": 4}' http://localhost:3000/api/games
curl -X POST -H "Content-Type: application/json" -d '{"direction": "up"}' http://localhost:3000/api/games/:gameId/move
curl -X GET http://localhost:3000/api/games/:gameId
POST /api/games
- Create a new gameGET /api/games/:gameId
- Get the current game statePOST /api/games/:gameId/move
- Make a move (up, down, left, right)DELETE /api/games/:gameId
- Delete a gameGET /api/games/:gameId/image
- Generate an image of the game boardcurl -X POST -H "Content-Type: application/json" -d '{"size": 4}' http://localhost:3000/api/games
curl -X POST -H "Content-Type: application/json" -d '{"direction": "up"}' http://localhost:3000/api/games/:gameId/move
curl -X GET http://localhost:3000/api/games/:gameId