Skip to content

Commit 13553ba

Browse files
committed
refactor(app:templates:server): deprecate res.sendfile -- use res.sendFile instead
1 parent 19e2133 commit 13553ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/templates/server/routes.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'use strict';
66

77
var errors = require('./components/errors');
8+
var path = require('path');
89

910
module.exports = function(app) {
1011

@@ -21,6 +22,6 @@ module.exports = function(app) {
2122
// All other routes should redirect to the index.html
2223
app.route('/*')
2324
.get(function(req, res) {
24-
res.sendfile(app.get('appPath') + '/index.html');
25+
res.sendFile(path.resolve(app.get('appPath') + '/index.html'));
2526
});
2627
};

0 commit comments

Comments
 (0)