Skip to content

Commit

Permalink
feat(platform-pluv): move webhooks to base path (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
leedavidcs authored Nov 3, 2024
1 parent c67ba74 commit f14b3be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silent-dancers-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pluv/platform-pluv": patch
---

Updated webhooks path to base path.
2 changes: 1 addition & 1 deletion packages/platform-pluv/src/PluvIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class PluvIO<TUser extends BaseUser> implements IOLike<PluvAuthorize<TUse
return handle(app);
}

private _webhooks = new Hono().basePath("/").post("/event", async (c) => {
private _webhooks = new Hono().basePath("/").post("/", async (c) => {
const signature = c.req.header(SIGNATURE_HEADER);

if (!this._webhookSecret || !signature) return c.json({ error: "Unauthorized" }, 401);
Expand Down

0 comments on commit f14b3be

Please sign in to comment.