From c79b8c73f679f0c8fe75b8642dd69d9b02761dcd Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 9 Jun 2024 00:43:11 +0530 Subject: [PATCH] feat: log workflow API info --- server/src/routes/workflow.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/src/routes/workflow.ts b/server/src/routes/workflow.ts index c44a5d79..0a3e87f8 100644 --- a/server/src/routes/workflow.ts +++ b/server/src/routes/workflow.ts @@ -9,3 +9,10 @@ import { readFile } from "../workflow-management/storage"; export const router = Router(); +/** + * Logs information about workflow API. + */ +router.all('/', (req, res, next) => { + logger.log('debug',`The workflow API was invoked: ${req.url}`) + next() // pass control to the next handler +})