From 3b09f7e80542b638b162235ec95fb69eb86c4694 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 6 Oct 2024 04:08:36 +0530 Subject: [PATCH] feat: use requireSignIn for upload credentials --- server/src/routes/integration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/routes/integration.ts b/server/src/routes/integration.ts index 3c9f8519..44dbd98f 100644 --- a/server/src/routes/integration.ts +++ b/server/src/routes/integration.ts @@ -1,10 +1,11 @@ import { Router } from 'express'; import logger from "../logger"; import { loadIntegrations, saveIntegrations } from '../workflow-management/integrations/gsheet'; +import { requireSignIn } from '../middlewares/auth'; export const router = Router(); -router.post('/upload-credentials', async (req, res) => { +router.post('/upload-credentials', requireSignIn, async (req, res) => { try { const { fileName, credentials, spreadsheetId, range } = req.body; if (!fileName || !credentials || !spreadsheetId || !range) {