From 19d3c4bc5ccb4cbf77f406cf6588cbe574102e5d Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Thu, 20 Jun 2019 17:20:44 +0200 Subject: [PATCH] Frontend settings for API v0.1 --- core/server/api/v0.1/settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/server/api/v0.1/settings.js b/core/server/api/v0.1/settings.js index a3fb87c325..3bdb0d5c6f 100644 --- a/core/server/api/v0.1/settings.js +++ b/core/server/api/v0.1/settings.js @@ -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(); }); } };