A fantasy league for Magic The Gathering cards
npm install
- Creating a .env file in the root of the project and adding DB_PRODUCTION and PORT
npm start
Returns all players and their picks.
body: { "name": "Example name", "picks": ["Black Lotus", "Storm Crow"]}
Creates a player with its starting picks.
Returns the stats collection.
Creates an empty stats collection on the database.
Returns the points of a player.
Returns a list of all the available filters
body: { "name": "Example filter", "to_include": ["Black Lotus", "Storm Crow"]}
Creates a filter.
Returns the points of a player with the applied filter.
body: { "url": "https://magic.wizards.com/en/articles/archive/mtgo-standings/standard-preliminary-2020-04-10" }
Updates the stats table to include data from an event.
The same url cannot be posted more than one time.
(The only urls supported by the system come from the Archive MTGO Standings. )