diff --git a/full-ingestion/src/index.js b/full-ingestion/src/index.js index 33b15fd..c529c89 100644 --- a/full-ingestion/src/index.js +++ b/full-ingestion/src/index.js @@ -17,7 +17,7 @@ app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); // Define routes -app.use('/', SyncRoutes); +app.use('/fullSync', SyncRoutes); // Listen the application const server = app.listen(PORT, () => { diff --git a/full-ingestion/src/routes/sync.route.js b/full-ingestion/src/routes/sync.route.js index b1cb54b..b1674e6 100644 --- a/full-ingestion/src/routes/sync.route.js +++ b/full-ingestion/src/routes/sync.route.js @@ -4,6 +4,6 @@ import { syncHandler } from '../controllers/sync.controller.js'; const syncRouter = Router(); -syncRouter.post('/fullSync/:storeKey', syncHandler); +syncRouter.post('/:storeKey', syncHandler); export default syncRouter; diff --git a/incremental-updater/src/index.js b/incremental-updater/src/index.js index 31179d8..387975c 100644 --- a/incremental-updater/src/index.js +++ b/incremental-updater/src/index.js @@ -15,7 +15,7 @@ app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); // Define routes -app.use('/', EventRoutes); +app.use('/deltaSync', EventRoutes); // Listen the application const server = app.listen(PORT, () => { diff --git a/incremental-updater/src/routes/event.route.js b/incremental-updater/src/routes/event.route.js index 57866e0..b73b43f 100644 --- a/incremental-updater/src/routes/event.route.js +++ b/incremental-updater/src/routes/event.route.js @@ -63,6 +63,6 @@ async function eventHandler(request, response) { } } -eventRouter.post('/deltaSync', eventHandler); +eventRouter.post('/', eventHandler); export default eventRouter;