Skip to content

Calling route handler in client component #62779

Answered by icyJoseph
surjeet88 asked this question in App Router
Discussion options

You must be logged in to vote

Try renaming your method to GET, all uppercased:

// all uppercased
export function GET() {
// rest of your implementation

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@surjeet88
Comment options

@icyJoseph
Comment options

Answer selected by surjeet88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants