Skip to content

Commit 21d52c9

Browse files
committed
Merge pull request angular-fullstack#539 from cesarvargas00/master
refactor(app:templates:server): deprecate sendfile -- use sendFile instead
2 parents 19e2133 + 13553ba commit 21d52c9

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)