ContactRouter.js 647 B

12345678910111213141516171819
  1. // TODO: This file was created by bulk-decaffeinate.
  2. // Sanity-check the conversion and remove this comment.
  3. /*
  4. * decaffeinate suggestions:
  5. * DS102: Remove unnecessary code created because of implicit returns
  6. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  7. */
  8. const AuthenticationController = require('../Authentication/AuthenticationController')
  9. const ContactController = require('./ContactController')
  10. module.exports = {
  11. apply(webRouter, apiRouter) {
  12. return webRouter.get(
  13. '/user/contacts',
  14. AuthenticationController.requireLogin(),
  15. ContactController.getContacts
  16. )
  17. }
  18. }