list.js 392 B

12345678910111213141516171819202122
  1. 'use strict';
  2. /** Get controllers */
  3. const listController = require('../controllers/list');
  4. /**
  5. * List routes
  6. * You can see a list pendient
  7. *
  8. * @param {Router} - express router
  9. */
  10. module.exports = function (router) {
  11. /**
  12. * List pending productions
  13. */
  14. router.route('/list')
  15. /** GET /list - Get a list of pending productions */
  16. .get(listController.index);
  17. return router;
  18. }