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', + }, + }, + ], +};