Moved redirects modules to backend

refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings

- These modules should be colocated on the backend side as the frontend should know nothing about "where the config comes from" in terms of file system or any other source.
This commit is contained in:
Naz 2021-09-27 19:12:24 +02:00
parent fb1d929b9d
commit 8bda544411
7 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -1,5 +1,5 @@
const web = require('../../web');
const redirects = require('../../../frontend/services/redirects');
const redirects = require('../../services/redirects');
module.exports = {
docName: 'redirects',

View File

@ -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',

View File

@ -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 = {};