Go to file
2022-03-18 15:21:10 -04:00
nginx Add nginx so we can make requests to our from the FE without CORS issues (#3) 2022-03-10 19:26:50 -05:00
ui Board that corresponds to what the api gives us (#4) 2022-03-16 21:46:20 -04:00
api_test.go fix game output 2022-03-18 15:21:10 -04:00
api_types.go fix game output 2022-03-18 15:21:10 -04:00
api.go fix game output 2022-03-18 15:21:10 -04:00
docker-compose.yml Add nginx so we can make requests to our from the FE without CORS issues (#3) 2022-03-10 19:26:50 -05:00
Dockerfile Put the api in docker (#2) 2022-03-07 21:43:36 -05:00
go.mod fix game view 2022-03-07 16:14:30 -05:00
go.sum fix game view 2022-03-07 16:14:30 -05:00
main.go actually use new handlers 2022-03-07 15:04:13 -05:00
README.md update readme 2022-03-08 16:12:41 -05:00
session.go fix game output 2022-03-18 15:21:10 -04:00
util.go fix game output 2022-03-18 15:21:10 -04:00
view_tile.go fix game output 2022-03-18 15:21:10 -04:00

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"