profile.js 499 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. /** Get controllers */
  3. const profileController = require('../controllers/profile');
  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} username - A unique sequence of characters used to identify a user
  14. */
  15. router.route('/u/:username')
  16. /** GET /u/:username - User profile navigation */
  17. .get(profileController.profileGet);
  18. return router;
  19. }