Skip to content

Commit

Permalink
Merge pull request #10 from commercetools/update-deployment-uri
Browse files Browse the repository at this point in the history
Update deployment URI
  • Loading branch information
leungkinghin-ct authored Sep 14, 2023
2 parents b07a365 + 66fa7c2 commit 5ea830f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion full-ingestion/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, () => {
Expand Down
2 changes: 1 addition & 1 deletion full-ingestion/src/routes/sync.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion incremental-updater/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, () => {
Expand Down
2 changes: 1 addition & 1 deletion incremental-updater/src/routes/event.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ async function eventHandler(request, response) {
}
}

eventRouter.post('/deltaSync', eventHandler);
eventRouter.post('/', eventHandler);

export default eventRouter;

0 comments on commit 5ea830f

Please sign in to comment.