Skip to content

Commit

Permalink
chore : added route config file
Browse files Browse the repository at this point in the history
Xitija committed Jan 16, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1e18542 commit 9356f31
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/common/config/routeConfig.js
Original file line number Diff line number Diff line change
@@ -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',
},
},
],
};

0 comments on commit 9356f31

Please sign in to comment.