https://github.com/aerilym/mint-works-cloudflare-workers
https://github.com/aerilym/mint-works-cloudflare-workers
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aerilym/mint-works-cloudflare-workers
- Owner: Aerilym
- Created: 2023-04-22T07:43:50.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T07:17:16.000Z (about 2 years ago)
- Last Synced: 2024-12-31T20:27:10.966Z (5 months ago)
- Language: TypeScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mint Works API
## POST /api/game
Body Example
```json
{
"players": [
{
"name": "Player 1",
"age": 21,
"tokens": 3
},
{
"name": "Player 2",
"age": 22,
"tokens": 3
}
]
}
```## GET /api/game/:id
## PUT /api/game/:id
Body Example
```json
{
"turn": { "action": { "_type": "Produce" }, "playerName": "Player 2" }
}
```