From 9356f315a630a381e2956ae70012a6e638079e3f Mon Sep 17 00:00:00 2001 From: Kshitija Kadam <65657373+Xitija@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:40:25 +0530 Subject: [PATCH] chore : added route config file --- src/common/config/routeConfig.js | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/common/config/routeConfig.js diff --git a/src/common/config/routeConfig.js b/src/common/config/routeConfig.js new file mode 100644 index 0000000..cc1a352 --- /dev/null +++ b/src/common/config/routeConfig.js @@ -0,0 +1,37 @@ +module.exports = { + routes: [ + { + sourceRoute: '/event-service/event/v1/create', + type: 'POST', + inSequence: true, + orchestrated: true, + targetRoute: { + path: '/event-service/event/v1/create', + type: 'POST', + functionName: 'createEvent', + }, + }, + { + sourceRoute: '/event-service/event/v1/:id', + type: 'PATCH', + inSequence: true, + orchestrated: true, + targetRoute: { + path: '/event-service/event/v1/:id', + type: 'PATCH', + functionName: 'updateEvent', + }, + }, + { + sourceRoute: '/event-service/event/v1/list', + type: 'POST', + inSequence: true, + orchestrated: true, + targetRoute: { + path: '/event-service/event/v1/list', + type: 'POST', + functionName: 'listEvents', + }, + }, + ], +};