Skip to content

Commit 9c7f1e3

Browse files
committed
Add express delegate option.
1 parent 6e9cc70 commit 9c7f1e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ module.exports = (options) => {
181181
app.use('/dp', express.static(path.resolve(__dirname, '/lib/static')));
182182
}
183183

184+
if (options.express) {
185+
options.express(app);
186+
}
187+
184188
if (options.static) {
185189
const paths = options.static;
186190
(Array.isArray(paths) ? paths : [paths])

0 commit comments

Comments
 (0)