基本schema测试
This commit is contained in:
12
node_modules/fastify/examples/plugin.js
generated
vendored
Normal file
12
node_modules/fastify/examples/plugin.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = function (fastify, opts, done) {
|
||||
fastify
|
||||
.get('/', opts, function (req, reply) {
|
||||
reply.send({ hello: 'world' })
|
||||
})
|
||||
.post('/', opts, function (req, reply) {
|
||||
reply.send({ hello: 'world' })
|
||||
})
|
||||
done()
|
||||
}
|
||||
Reference in New Issue
Block a user