Chapter 4,6: prettier updates and web framework samples
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = function (fastify, opts, next) {
|
||||
fastify.get('/', function (request, reply) {
|
||||
reply.send({ root: true })
|
||||
})
|
||||
|
||||
next()
|
||||
}
|
||||
|
||||
// If you prefer async/await, use the following
|
||||
//
|
||||
// module.exports = async function (fastify, opts) {
|
||||
// fastify.get('/', async function (request, reply) {
|
||||
// return { root: true }
|
||||
// })
|
||||
// }
|
||||
Reference in New Issue
Block a user