Remove logs and fix admin path

This commit is contained in:
Aurélien Georget 2016-11-24 17:36:37 +01:00
parent b80184efef
commit dae5859966
2 changed files with 1 additions and 5 deletions

View File

@ -109,7 +109,7 @@ module.exports = strapi => {
}
});
routerAdmin.prefix(strapi.config.admin);
routerAdmin.prefix(strapi.config.admin || `/${strapi.config.paths.admin}`);
// TODO:
// - Mount on main router `strapi.router.use(routerAdmin.middleware());`
@ -205,8 +205,6 @@ module.exports = strapi => {
}
});
console.log(strapi.router.routes);
// Let the router use our routes and allowed methods.
strapi.app.use(strapi.router.middleware());
strapi.app.use(strapi.router.router.allowedMethods({

View File

@ -130,8 +130,6 @@ module.exports = strapi => {
config: admin['config/**']
};
console.log(strapi.admin);
// If the module doesn't have a definition at all
// just remove it completely from the dictionary.
if (_.isEmpty(strapi.admin)) {