mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Static content is defined in the configure() method
This commit is contained in:
parent
25716ac54f
commit
981e026f8d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user