2 * @file HTTP(S) Router that treats the first directory in a URL's path as
7 * @copyright jk software 2017
9 const fs
= require('fs')
11 module
.exports
= (opts
) => {
12 const startHttpd
= (listener
) => {
14 return require('http').createServer(listener
)
15 if (fs
.existsSync(opts
['ca-cert']))