api routes arent found
Answered
Nile Crocodile posted this in #help-forum
Nile CrocodileOP
im trying to add an api route but it nextjs doesnt find it?
5 Replies
@Arinji read the docs, https://nextjs.org/docs/app/building-your-application/routing/route-handlers#convention
Nile CrocodileOP
yeah i did it seems like i did everything right?
route.ts in the folder
Answer
so api/ask/route.ts
Nile CrocodileOP
ohhhhhhh thats confusing i thought they wanted to replace route witht the actual name