Go to file
2022-03-10 19:28:30 -05: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 starting attaching to server 2022-03-10 19:28:30 -05:00
api_types.go use headers for player_id 2022-03-08 16:11:15 -05:00
api.go use headers for player_id 2022-03-08 16:11:15 -05: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 view 2022-03-07 16:14:30 -05:00
util.go rest of the routes, dummy game creation 2022-03-07 14:47:35 -05:00
view_tile.go fix game view 2022-03-07 16:14:30 -05: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"