mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Remove logs and fix admin path
This commit is contained in:
parent
b80184efef
commit
dae5859966
@ -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({
|
||||
|
||||
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user