'use strict'

const express = require('express')
const router  = express.Router()
const c       = require('../controllers/recorrenteController')
const { verifyUserToken } = require('../middleware/auth')

router.use(verifyUserToken)

router.get('/',             c.list)
router.post('/',            c.create)
router.put('/:id',          c.update)
router.patch('/:id/pausa',  c.togglePausa)
router.delete('/:id',       c.remove)

module.exports = router
