From 3ec79e2f938423d1442886454204973d804f37d9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 18 Sep 2025 16:36:25 -0700 Subject: allow invoice owners to modify the webhook --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.ts') diff --git a/index.ts b/index.ts index 0ca35ec5..611c6ea5 100644 --- a/index.ts +++ b/index.ts @@ -47,7 +47,7 @@ app.get("/locations", locations.list); app.get("/invoice/:id", invoices.get); app.get("/invoices", auth, invoices.list); app.post("/invoice", optional, invoices.create); -app.post("/invoice/:id", invoices.update); +app.post("/invoice/:id", optional, invoices.update); app.post("/sign", auth, invoices.sign); app.get("/assetlinks.json", (_, res) => res.sendFile("assetlinks.json")); -- cgit v1.2.3