diff --git a/core/server/api/canary/redirects.js b/core/server/api/canary/redirects.js index f5e44baac9..94dbb61d58 100644 --- a/core/server/api/canary/redirects.js +++ b/core/server/api/canary/redirects.js @@ -1,7 +1,7 @@ const path = require('path'); const web = require('../../web'); -const redirects = require('../../../frontend/services/redirects'); +const redirects = require('../../services/redirects'); module.exports = { docName: 'redirects', diff --git a/core/server/api/v2/redirects.js b/core/server/api/v2/redirects.js index 161d01343a..b62b810fea 100644 --- a/core/server/api/v2/redirects.js +++ b/core/server/api/v2/redirects.js @@ -1,5 +1,5 @@ const web = require('../../web'); -const redirects = require('../../../frontend/services/redirects'); +const redirects = require('../../services/redirects'); module.exports = { docName: 'redirects', diff --git a/core/server/api/v3/redirects.js b/core/server/api/v3/redirects.js index f5e44baac9..94dbb61d58 100644 --- a/core/server/api/v3/redirects.js +++ b/core/server/api/v3/redirects.js @@ -1,7 +1,7 @@ const path = require('path'); const web = require('../../web'); -const redirects = require('../../../frontend/services/redirects'); +const redirects = require('../../services/redirects'); module.exports = { docName: 'redirects', diff --git a/core/frontend/services/redirects/index.js b/core/server/services/redirects/index.js similarity index 100% rename from core/frontend/services/redirects/index.js rename to core/server/services/redirects/index.js diff --git a/core/frontend/services/redirects/settings.js b/core/server/services/redirects/settings.js similarity index 100% rename from core/frontend/services/redirects/settings.js rename to core/server/services/redirects/settings.js diff --git a/core/frontend/services/redirects/validation.js b/core/server/services/redirects/validation.js similarity index 100% rename from core/frontend/services/redirects/validation.js rename to core/server/services/redirects/validation.js diff --git a/core/server/web/shared/middlewares/custom-redirects.js b/core/server/web/shared/middlewares/custom-redirects.js index 69458f19c2..f1c3b86149 100644 --- a/core/server/web/shared/middlewares/custom-redirects.js +++ b/core/server/web/shared/middlewares/custom-redirects.js @@ -7,7 +7,7 @@ const urlUtils = require('../../../../shared/url-utils'); const errors = require('@tryghost/errors'); const i18n = require('../../../../shared/i18n'); const logging = require('@tryghost/logging'); -const redirectsService = require('../../../../frontend/services/redirects'); +const redirectsService = require('../../../services/redirects'); const _private = {};