From 655feeceb95ca7ff65842b29965905c28839b867 Mon Sep 17 00:00:00 2001 From: Taras Date: Thu, 23 Feb 2023 20:14:03 -0500 Subject: [PATCH] Added GET providers endpoint Signed-off-by: Taras --- .../src/router/routes.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/catalog-backend-module-incremental-ingestion/src/router/routes.ts b/plugins/catalog-backend-module-incremental-ingestion/src/router/routes.ts index 76fce4af75..7fd40db674 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/src/router/routes.ts +++ b/plugins/catalog-backend-module-incremental-ingestion/src/router/routes.ts @@ -153,6 +153,15 @@ export class IncrementalProviderRouter { } }); + router.get(`/incremental/providers/`, async (_req, res) => { + const providers = await this.manager.listProviders(); + + res.json({ + success: true, + providers, + }); + }); + // Stop the provider and pause it for 24 hours router.post(`/incremental/providers/:provider/cancel`, async (req, res) => { const { provider } = req.params;