fix example to allow custom app... duh

This commit is contained in:
AJ ONeal 2016-10-13 19:18:36 -06:00
parent 5c7efcd3de
commit c466e2b7c4
1 changed files with 1 additions and 1 deletions

2
lex.js
View File

@ -5,7 +5,7 @@ module.exports.create = function (opts) {
// accept all defaults for le.challenges, le.store, le.middleware // accept all defaults for le.challenges, le.store, le.middleware
var le = require('letsencrypt').create(opts); 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"); res.end("Hello, World!\nWith Love,\nLet's Encrypt Express");
}; };