mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Set strapi.config.plugins object
This commit is contained in:
parent
f1d4a0bb86
commit
3d47f56b0c
@ -129,6 +129,9 @@ module.exports = strapi => {
|
||||
// Expose user plugins.
|
||||
strapi.plugins = config['plugins/**'];
|
||||
|
||||
// Initialize plugin's routes.
|
||||
_.set(strapi.config, 'plugins.routes', {});
|
||||
|
||||
// Add user locales for the settings of the `i18n` hook
|
||||
// aiming to load locales automatically.
|
||||
if (_.isPlainObject(strapi.config.i18n) && !_.isEmpty(strapi.config.i18n)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user