fry
74ee26c8d6
Co-authored-by: David Frymoyer <david.frymoyer@gmail.com> Reviewed-on: #3 Co-authored-by: fry <david.frymoyer@gmail.com> Co-committed-by: fry <david.frymoyer@gmail.com> |
||
---|---|---|
nginx | ||
ui | ||
api_types.go | ||
api.go | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md | ||
session.go | ||
util.go | ||
view_tile.go |
freego_api
freego implementation as a simple REST API.
Currently stores no state and has no user authentication, so using it should just be
go build
./freego_api
Implemented routes
POST /game
GET /game/{id}
GET /game/{id}/status
POST /game/{id}/move
GET /game/{id}/move/{movenum}
Authorization headers
Requests should contain header "Player-id"="red|blue"