| 12345678910111213141516171819202122232425262728 |
- module.exports = {
- method: 'GET',
- path: '/',
-
- /**
- * Our request hanlder callback
- * @param {*} request
- * @param {*} h
- * @returns {Object}
- */
- handler: async function (request, h) {
- return { test: 'hello, world' }
- },
-
- /**
- * Our route options
- * @param {string} description - Title for our swagger docs
- * @param {string} notes - Subtitle for our swagger docs
- * @param {Array} tags - Our tags
- * @param {boolean} auth - The authentication scheme
- */
- options: {
- description: 'Test',
- notes: 'This is an example route',
- tags: ['api'],
- auth: false,
- },
- }
|