Skip to content

Commit

Permalink
Add post to receive webhook events and trigger delta
Browse files Browse the repository at this point in the history
  • Loading branch information
minkimcello committed Oct 19, 2022
1 parent a669d47 commit 334452f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/backend/src/plugins/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export default async function createPlugin(
fn: async () => await sourcegraphProvider.full(),
});

router.post("/sourcegraph/webhook", async (req, _res) => {
await sourcegraphProvider.delta(req.body);
});

await processingEngine.start();

return router;
Expand Down

0 comments on commit 334452f

Please sign in to comment.