mirror of
https://github.com/Febbweiss/CloudBudget-AngularJS.git
synced 2026-03-04 22:35:38 +00:00
Feature: get user's accounts
This commit is contained in:
@@ -10,7 +10,8 @@ router.get('*', function(req, res, next) {
|
||||
var dotIndex = req.path.lastIndexOf('.'),
|
||||
extension = dotIndex === - 1 ? '' : req.path.substr(dotIndex);
|
||||
|
||||
if( ['.js','.css','.html'].indexOf(extension) > -1 ) {
|
||||
if( ['.js','.css','.html',
|
||||
'.woff', '.woff2', '.ttf', '.svg', '.eot', '.otf'].indexOf(extension) > -1 ) {
|
||||
next();
|
||||
} else {
|
||||
res.sendfile('./public/index.html');
|
||||
|
||||
Reference in New Issue
Block a user