Static content is defined in the configure() method

This commit is contained in:
Travis Ralston 2018-04-01 11:14:59 -06:00
parent 25716ac54f
commit 981e026f8d

View File

@ -39,9 +39,6 @@ export default class Webserver {
res.sendFile(path.join(__dirname, "..", "..", "web", "index.html")); res.sendFile(path.join(__dirname, "..", "..", "web", "index.html"));
}); });
// Register the static content last
this.app.use(express.static(path.join(__dirname, "..", "..", "web")));
// Set up the error handler // Set up the error handler
this.app.use((err: any, _req, res, next) => { this.app.use((err: any, _req, res, next) => {
if (err instanceof ApiError) { if (err instanceof ApiError) {