locale.js 501 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. /** Get controllers */
  3. const localeController = require('../controllers/locale');
  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('/set-locale/:locale')
  16. /** GET /i/:permalink - Film info navigation */
  17. .get(localeController.localeSet);
  18. return router;
  19. }