Rewrite in Go
No way I'm adding new stuff to this thing. Porting to Go should be pretty straightforward. Let's also take the chance to make the API restful.
-
/tournaments: done, but now my_team and my_team_name are not in there anymore. Solution: ?member= to /team -
/tournaments/:id -
/tournaments/:id/rules (/tournaments/rules) -
/tournaments/:id/teams -
POST /tournaments/:id/teams (/tournaments/register) -
/tournaments/:id/posts -
POST /tournaments/:id/posts -
/tournaments/:id/posts/:pid -
DELETE /tournaments/:id/posts/:pid
-
-
-
-
/teams -
with ?member=:id -
/teams/:id (/teams/team) -
PATCH /teams/:id (rename) -
DELETE /teams/:id (disband) -
/teams/:id/members -
PUT /teams/:id/members/:uid (invite) -
DELETE /teams/:id/members/:uid (kick)
-
-
-
-
/invites (?filter={accepted,declined,pending}) -
/invites/:id -
PATCH /invites/:id (both accept and decline. This changes the status of the request in the db, and in case of declining it will change the status to -1. This allows us to forbid re-inviting the user many times)
-
-
PUT /fcm_token - oauth
-
/oauth_flow_start -> /oauth/start -
/oauth_flow_finish -> /oauth/finish (redirecting old url to new)
-