UNPKG

fastify

Version:

Fast and low overhead web framework, for Node.js

13 lines (11 loc) 262 B
'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() }