Renamed 'routes' to 'dynamic-routing'

This commit is contained in:
Nazar Gargol 2019-06-21 13:12:23 +02:00
parent 19d3c4bc5c
commit f3b4e2e39a
4 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
module.exports = {
get routes() {
return require('./RoutesHandler');
get dynamicRouting() {
return require('./dynamic-routing');
}
};

View File

@ -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();
});
}
};

View File

@ -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();
}
}
};