Explicitly configure routes to not require auth when it isn't needed

This commit is contained in:
Lukas Olson 2015-11-03 14:12:58 -07:00
parent 0dfe904540
commit 226ca9ff92
3 changed files with 8 additions and 3 deletions

View file

@ -13,7 +13,8 @@ module.exports = (kbnServer, server, config) => {
passThrough: true,
xforward: true
}
}
},
config: {auth: false}
});
return fromNode(cb => {

View file

@ -40,7 +40,8 @@ module.exports = function (kbnServer, server, config) {
listing: true,
lookupCompressed: true
}
}
},
config: {auth: false}
});
});
@ -51,7 +52,8 @@ module.exports = function (kbnServer, server, config) {
method: 'GET',
handler: {
file: filePath
}
},
config: {auth: false}
});
});

View file

@ -57,6 +57,8 @@ module.exports = async (kbnServer, server, config) => {
});
server.decorate('reply', 'renderApp', function (app) {
if (_.isString(app)) app = uiExports.getApp(app) || uiExports.getHiddenApp(app);
let payload = {
app: app,
nav: uiExports.apps,