We'll need to create a new schema for teams to point to a 'teams' collection
- Team Name
- Player 1 - ID of user record
- Player 2 - ID of user record
We need to create a few new routes:
TEAMS:
- /teams - POST - Add a team
- /teams - GET - retrieve the JSON for all teams
- /teams/:teamID - DELETE - remove the team by ID
- /teams/:teamID - GET - get the team by ID
MATCHES:
- /matches/team - POST - Add a match including two teams
Write unit tests to test this logic. Don't start UI, that will be done in a different issue.
We'll need to create a new schema for teams to point to a 'teams' collection
We need to create a few new routes:
TEAMS:
MATCHES:
Write unit tests to test this logic. Don't start UI, that will be done in a different issue.