Enable ionic user check

This commit is contained in:
garrettmills 2020-02-08 23:15:36 -06:00
parent 0757cefac1
commit 3bf4c9eb1f

View File

@ -22,7 +22,7 @@ class IonicUnit extends Unit {
app.express.use(cors()) app.express.use(cors())
app.express.use('/i', [ app.express.use('/i', [
// this.canon.get('middleware::auth:UserOnly'), this.canon.get('middleware::auth:UserOnly'),
(req, res, next) => { (req, res, next) => {
const allowed_extensions = ['.html', '.js', '.css', '.svg', '.ttf', '.jpg', '.png', '.jpeg'] const allowed_extensions = ['.html', '.js', '.css', '.svg', '.ttf', '.jpg', '.png', '.jpeg']
for ( const k1 in allowed_extensions ) { for ( const k1 in allowed_extensions ) {