diff --git a/index.js b/index.js index 8e54695..41a3465 100644 --- a/index.js +++ b/index.js @@ -19,6 +19,7 @@ if (!directory) { } app.use('/b', express.static(directory)) +app.use(express.static(path.join(__dirname, 'static'))) app.listen(PORT, () => { console.log("Now listening on PORT: " + PORT) @@ -35,11 +36,11 @@ app.get("/b*", (req, res) => { var absPath = path.join(directory, file) res.setHeader('Content-Type', 'text/html') - + try { var dirContents = fs.readdirSync(absPath) } catch (error) { - res.send("
404: not found!
") + res.send(baseStart + "