{"size": 361, "ext": "js", "max_stars_repo_path": "controllers/tests.js", "max_stars_repo_name": "OlliJ5/PickupGameFinder-back", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "controllers/tests.js", "max_issues_repo_name": "OlliJ5/PickupGameFinder-back", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "controllers/tests.js", "max_forks_repo_name": "OlliJ5/PickupGameFinder-back", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.7857142857, "max_line_length": 52, "alphanum_fraction": 0.6814404432}
const router = require('express').Router()
const Game = require('../models/game')
const User = require('../models/user')
const Player = require('../models/player')

router.post('/reset', async (request, response) => {
  await Game.deleteMany({})
  await User.deleteMany({})
  await Player.deleteMany({})

  response.status(204).end()
})

module.exports = router