From 63d55570a32b4bb5316d5960f152010cec2dd6c5 Mon Sep 17 00:00:00 2001 From: Thibaut Patel Date: Wed, 17 Mar 2021 15:58:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20Removed=20the=20`/redirects/json?= =?UTF-8?q?`=20route=20alias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no issue This route had been deprecated and wasn't used anymore. You should switch to `GET /redirects/download` and `POST /redirects/upload` instead. --- core/server/web/api/canary/admin/routes.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/server/web/api/canary/admin/routes.js b/core/server/web/api/canary/admin/routes.js index 206da80f0e..f51d4902f8 100644 --- a/core/server/web/api/canary/admin/routes.js +++ b/core/server/web/api/canary/admin/routes.js @@ -228,15 +228,6 @@ module.exports = function apiRoutes() { router.del('/invites/:id', mw.authAdminApi, http(apiCanary.invites.destroy)); // ## Redirects - // TODO: yaml support has been added to https://github.com/TryGhost/Ghost/issues/11085 - // The `/json` endpoints below are left for backward compatibility. They'll be removed in v4. - router.get('/redirects/json', mw.authAdminApi, http(apiCanary.redirects.download)); - router.post('/redirects/json', - mw.authAdminApi, - apiMw.upload.single('redirects'), - apiMw.upload.validation({type: 'redirects'}), - http(apiCanary.redirects.upload) - ); router.get('/redirects/download', mw.authAdminApi, http(apiCanary.redirects.download)); router.post('/redirects/upload', mw.authAdminApi,