From 8188e06c766d3f673255d307a8088f89a5eb498c Mon Sep 17 00:00:00 2001 From: garrettmills Date: Thu, 22 Oct 2020 09:38:06 -0500 Subject: [PATCH] All JSON files served from ionic endpoints --- app/IonicUnit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/IonicUnit.js b/app/IonicUnit.js index f6c2270..a2c5006 100644 --- a/app/IonicUnit.js +++ b/app/IonicUnit.js @@ -24,7 +24,7 @@ class IonicUnit extends Unit { app.express.use('/i', [ this.canon.get('middleware::auth:UserOnly'), (req, res, next) => { - const allowed_extensions = ['.html', '.js', '.css', '.svg', '.ttf', '.jpg', '.png', '.jpeg', '.webmanifest'] + const allowed_extensions = ['.html', '.js', '.css', '.svg', '.ttf', '.jpg', '.png', '.jpeg', '.webmanifest', '.json'] for ( const k1 in allowed_extensions ) { if ( req.path.endsWith(allowed_extensions[k1]) ) return next() }