Handle routes a little nicer

This commit is contained in:
turt2live 2017-05-27 18:25:35 -06:00
parent 0947fdab64
commit 4c3c66ec00

View File

@ -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"));
});