mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
Frontend settings for API v0.1
This commit is contained in:
parent
61dc9e8c24
commit
19d3c4bc5c
@ -5,7 +5,7 @@ const Promise = require('bluebird'),
|
||||
models = require('../../models'),
|
||||
canThis = require('../../services/permissions').canThis,
|
||||
localUtils = require('./utils'),
|
||||
frontendRouting = require('../../../frontend/services/routing'),
|
||||
frontendSettings = require('../../../frontend/services/settings'),
|
||||
common = require('../../lib/common'),
|
||||
settingsCache = require('../../services/settings/cache'),
|
||||
docName = 'settings';
|
||||
@ -254,14 +254,14 @@ settings = {
|
||||
upload(options) {
|
||||
return localUtils.handlePermissions('settings', 'edit')(options)
|
||||
.then(() => {
|
||||
return frontendRouting.settings.activate(options.path);
|
||||
return frontendSettings.routes.activate(options.path);
|
||||
});
|
||||
},
|
||||
|
||||
download(options) {
|
||||
return localUtils.handlePermissions('settings', 'browse')(options)
|
||||
.then(() => {
|
||||
return frontendRouting.settings.serve();
|
||||
return frontendSettings.routes.serve();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user