From 981e026f8d0095dd775eff8f260d63f763eb8298 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sun, 1 Apr 2018 11:14:59 -0600 Subject: [PATCH] Static content is defined in the configure() method --- src/api/Webserver.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/api/Webserver.ts b/src/api/Webserver.ts index 74c45bd..982fac8 100644 --- a/src/api/Webserver.ts +++ b/src/api/Webserver.ts @@ -39,9 +39,6 @@ export default class Webserver { 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 this.app.use((err: any, _req, res, next) => { if (err instanceof ApiError) {