From c466e2b7c450ad1c434f3eabaee22fb4644b8262 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 13 Oct 2016 19:18:36 -0600 Subject: [PATCH] fix example to allow custom app... duh --- lex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lex.js b/lex.js index 003c727..3b93d76 100644 --- a/lex.js +++ b/lex.js @@ -5,7 +5,7 @@ module.exports.create = function (opts) { // accept all defaults for le.challenges, le.store, le.middleware var le = require('letsencrypt').create(opts); - opts.app = function (req, res) { + opts.app = opts.app || function (req, res) { res.end("Hello, World!\nWith Love,\nLet's Encrypt Express"); };