feat: log workflow API info

This commit is contained in:
karishmas6
2024-06-09 00:43:11 +05:30
parent e03b482a11
commit c79b8c73f6

View File

@@ -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
})