v1.18.x
barisusakli 9 years ago
parent 382fa265a4
commit 0f959c341b

@ -146,7 +146,7 @@ module.exports = function(app, middleware) {
function handle404(app, middleware) { function handle404(app, middleware) {
var relativePath = nconf.get('relative_path'); var relativePath = nconf.get('relative_path');
var isLanguage = new RegExp('^' + relativePath + '/language/[\\w]{2,}/.*.json'), var isLanguage = new RegExp('^' + relativePath + '/language/.*/.*.json'),
isClientScript = new RegExp('^' + relativePath + '\\/src\\/.+\\.js'); isClientScript = new RegExp('^' + relativePath + '\\/src\\/.+\\.js');
app.use(function(req, res) { app.use(function(req, res) {

Loading…
Cancel
Save