Enable ionic user check
This commit is contained in:
parent
0757cefac1
commit
3bf4c9eb1f
@ -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 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user