Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

test.js 505B

12345678910111213141516171819
  1. module.exports = {
  2. name: 'myPlugin',
  3. version: '1.0.0',
  4. register: async (server, options) => {
  5. // Create a route for example
  6. server.route({
  7. method: 'GET',
  8. path: '/test',
  9. handler: async function (request, h) {
  10. return { test: 'hello, world' }
  11. },
  12. options: {
  13. description: 'Test',
  14. notes: 'This is a test route',
  15. tags: ['api'],
  16. }
  17. })
  18. }
  19. }