film.js 487 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. /** Get controllers */
  3. const filmController = require('../controllers/film');
  4. /**
  5. * User Profile routes
  6. * You can see user profile
  7. *
  8. * @param {Router} - express router
  9. */
  10. module.exports = function (router) {
  11. /**
  12. * User profile navigation
  13. * @param {string} permalink - A unique sequence of characters used to identify a user
  14. */
  15. router.route('/i/:permalink')
  16. /** GET /i/:permalink - Film info navigation */
  17. .get(filmController.filmGet);
  18. return router;
  19. }