Skip to content

Conversation

@delvedor
Copy link
Member

As titled, usage:

$ fastify -o plugin.js

'use strict'

module.exports = function (fastify, options, next) {
  fastify.get('/', function (req, reply) {
    reply.send({ hello: 'world' })
  })
  next()
}

module.exports.options = {
  https: {
    key: 'key',
    cert: 'cert'
  }
}

@delvedor delvedor merged commit f78ceac into master Jan 15, 2017
@delvedor delvedor deleted the options-support branch January 15, 2017 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants