(options)
| 1 | const fetchJson = require('./fetch-json') |
| 2 | |
| 3 | const postTournament = (options) => { |
| 4 | return fetchJson('/db/tournament', { |
| 5 | method: 'POST', |
| 6 | json: options |
| 7 | }) |
| 8 | } |
| 9 | |
| 10 | const putTournament = (options) => { |
| 11 | return fetchJson(`/db/tournament/${options._id}`, { |
nothing calls this directly
no outgoing calls
no test coverage detected