Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom options support #1

Merged
merged 4 commits into from
Jan 15, 2017
Merged

Custom options support #1

merged 4 commits into from
Jan 15, 2017

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.

1 participant