mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Handle routes a little nicer
This commit is contained in:
parent
0947fdab64
commit
4c3c66ec00
@ -28,7 +28,7 @@ class Dimension {
|
||||
this._app.use(bodyParser.json());
|
||||
|
||||
// Register routes for angular app
|
||||
this._app.get(['/riot/*', '/app/*', '/splash/*'], (req, res) => {
|
||||
this._app.get(['/riot', '/riot/*'], (req, res) => {
|
||||
res.sendFile(path.join(__dirname, "..", "web-dist", "index.html"));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user