const express = require('express');
const { getUsers, getUser, createUser, updateUser } = require('../controllers/userController');

const router = express.Router();

router.route('/')
  .get(getUsers)
  .post(createUser);

router.route('/:id')
  .get(getUser)
  .put(updateUser);

module.exports = router;