From 6a2b41ae24e9bf3cd638330fae69ad4fbad51ccb Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Mon, 12 Jul 2021 11:15:38 +0200 Subject: [PATCH] Remove temporary test router. Signed-off-by: Eric Peterson --- .../techdocs-backend/src/service/router.ts | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/plugins/techdocs-backend/src/service/router.ts b/plugins/techdocs-backend/src/service/router.ts index a5a4a3f647..7563dfa2f9 100644 --- a/plugins/techdocs-backend/src/service/router.ts +++ b/plugins/techdocs-backend/src/service/router.ts @@ -246,28 +246,6 @@ export async function createRouter( } }); - /** - * TODO: Remove this endpoint before merging. This is just a convenient way - * to test publisher.migrateDocsCase() implementations. - */ - router.get('/do-not-commit/migrate', async (req, res) => { - if (publisher.migrateDocsCase) { - try { - await publisher.migrateDocsCase({ - // removeOriginal: !!req.query?.removeOriginal, - concurrency: - parseInt((req.query?.concurrency as string) || '', 25) || undefined, - }); - res.status(200).send('Good job'); - } catch (e) { - logger.error(e); - res.status(500).send('Uh-oh'); - } - } else { - res.status(400).send('Not valid'); - } - }); - // Route middleware which serves files from the storage set in the publisher. router.use('/static/docs', publisher.docsRouter());