We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19e2133 + 13553ba commit 21d52c9Copy full SHA for 21d52c9
app/templates/server/routes.js
@@ -5,6 +5,7 @@
5
'use strict';
6
7
var errors = require('./components/errors');
8
+var path = require('path');
9
10
module.exports = function(app) {
11
@@ -21,6 +22,6 @@ module.exports = function(app) {
21
22
// All other routes should redirect to the index.html
23
app.route('/*')
24
.get(function(req, res) {
- res.sendfile(app.get('appPath') + '/index.html');
25
+ res.sendFile(path.resolve(app.get('appPath') + '/index.html'));
26
});
27
};
0 commit comments