You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. module.exports = {
  2. method: 'GET',
  3. path: '/',
  4. /**
  5. * Our request hanlder callback
  6. * @param {*} request
  7. * @param {*} h
  8. * @returns {Object}
  9. */
  10. handler: async function (request, h) {
  11. return { test: 'hello, world' }
  12. },
  13. /**
  14. * Our route options
  15. * @param {string} description - Title for our swagger docs
  16. * @param {string} notes - Subtitle for our swagger docs
  17. * @param {Array} tags - Our tags
  18. * @param {boolean} auth - The authentication scheme
  19. */
  20. options: {
  21. description: 'Test',
  22. notes: 'This is an example route',
  23. tags: ['api'],
  24. auth: false,
  25. },
  26. }