Created
November 9, 2017 20:19
-
-
Save israeleriston/e3e3451e0eda51b3c3add553e4c4492b to your computer and use it in GitHub Desktop.
router loaded with problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const opts = { | |
schema: { | |
response: { | |
200: { | |
type: 'object', | |
properties: { | |
ok: { type: 'string' } | |
} | |
} | |
} | |
} | |
} | |
module.exports = { | |
method: 'get', | |
url: '/some-route', | |
name: 'some-route', | |
// useWrap: true, | |
version: 'v1.0.0', | |
handler: (req, reply) => { | |
return reply.send({ ok: true }) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment