Skip to content

Commit

Permalink
actually use the provided method
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvercr committed Apr 17, 2024
1 parent b1f48ac commit a94818e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/piveau.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function piveauInstance<C>(descriptor: Descriptor, cb: Callback<C>) {

const resp = await fetch(endpoint.address, {
body: JSON.stringify(descriptor),
method: "POST",
method: endpoint.method,
headers: { "content-type": "application/json" },
});

Expand Down

0 comments on commit a94818e

Please sign in to comment.