Next.js Discord

Discord Forum

Route Handling problem

Answered
Black carp posted this in #help-forum
Open in Discord
Black carpOP
I'm very very new to next.js and I want to make a route handler.
Answered by Asiatic Lion
View full answer

19 Replies

Asiatic Lion
Answer
@Black carp I don't see any calling there?
where do you want to call them?
@Black carp I don't see any calling there?
Asiatic Lion
rename it to route.js
and then call /api
Black carpOP
it is now
didnt do anything
where
do you want to call them
Black carpOP
@alfon do you want to call them
Black carpOP
wdym
its GET not Get
Black carpOP
bruh
i had it at GET
but it changed
maybe after autocompleting
thanks anyways
and now whenever i want the user to get the message i redirect them to this url?