Skip to content

Conversation

@endel
Copy link

@endel endel commented Jun 30, 2025

This PR is meant to make it easier and more intuitive to define GET methods, by making it optional to specify { method: "GET" } as second argument:

const endpoint = createEndpoint("/something", async (ctx) => {
  return { ... };
});

Previously, the user would need to specify the method as option in the second argument:

const endpoint = createEndpoint("/something", { method: "GET" }, async (ctx) => {
  return { ... };
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant