{"size": 741, "ext": "js", "max_stars_repo_path": "routes/series.js", "max_stars_repo_name": "igormpmartins/minhas-series", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/series.js", "max_issues_repo_name": "igormpmartins/minhas-series", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/series.js", "max_forks_repo_name": "igormpmartins/minhas-series", "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": 26.4642857143, "max_line_length": 71, "alphanum_fraction": 0.7233468286}
const express = require('express')
const controller = require('../controllers/series')
const Serie = require('../models/series')

const models = {
    Serie
}

const router = express.Router()

router.get('/', controller.index.bind(null, models))

//add
router.get('/nova', controller.novaForm)
router.post('/nova', controller.novaProcess.bind(null, models))

//remove
router.get('/excluir/:id', controller.excluir.bind(null, models))

//edit
router.get('/editar/:id', controller.editarForm.bind(null, models))
router.post('/editar/:id', controller.editarProcess.bind(null, models))

//info
router.get('/info/:id', controller.info.bind(null, models))
router.post('/info/:id', controller.addComment.bind(null, models))

module.exports = router