diff --git a/core/frontend/services/settings/RoutesHandler.js b/core/frontend/services/settings/dynamic-routing.js similarity index 100% rename from core/frontend/services/settings/RoutesHandler.js rename to core/frontend/services/settings/dynamic-routing.js diff --git a/core/frontend/services/settings/index.js b/core/frontend/services/settings/index.js index 1c721c2ee9..ccf6c497aa 100644 --- a/core/frontend/services/settings/index.js +++ b/core/frontend/services/settings/index.js @@ -1,5 +1,5 @@ module.exports = { - get routes() { - return require('./RoutesHandler'); + get dynamicRouting() { + return require('./dynamic-routing'); } }; diff --git a/core/server/api/v0.1/settings.js b/core/server/api/v0.1/settings.js index 3bdb0d5c6f..65d60130e6 100644 --- a/core/server/api/v0.1/settings.js +++ b/core/server/api/v0.1/settings.js @@ -254,14 +254,14 @@ settings = { upload(options) { return localUtils.handlePermissions('settings', 'edit')(options) .then(() => { - return frontendSettings.routes.activate(options.path); + return frontendSettings.dynamicRouting.activate(options.path); }); }, download(options) { return localUtils.handlePermissions('settings', 'browse')(options) .then(() => { - return frontendSettings.routes.serve(); + return frontendSettings.dynamicRouting.serve(); }); } }; diff --git a/core/server/api/v2/settings.js b/core/server/api/v2/settings.js index fe0d4e0609..55eef7536a 100644 --- a/core/server/api/v2/settings.js +++ b/core/server/api/v2/settings.js @@ -147,7 +147,7 @@ module.exports = { method: 'edit' }, query(frame) { - return frontendSettings.routes.activate(frame.file.path); + return frontendSettings.dynamicRouting.activate(frame.file.path); } }, @@ -165,7 +165,7 @@ module.exports = { method: 'browse' }, query() { - return frontendSettings.routes.serve(); + return frontendSettings.dynamicRouting.serve(); } } };