fix example to allow custom app... duh
This commit is contained in:
parent
5c7efcd3de
commit
c466e2b7c4
2
lex.js
2
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");
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue