api route returns 404
Answered
Berger Picard posted this in #help-forum
Berger PicardOP
Heya, I'm trying to create a nextjs website that fetches player counts of our servers, however. nextjs returns 404 on the api route
16 Replies
Berger PicardOP
even with a simple test page it isn't working
and this is postman
yes so make it
api/players/route.tsAnswer
Berger PicardOP
how is this not mention in the docs tf
it is...
Berger PicardOP
it works
i'm confused
but its not at the beginning of docs...
Berger PicardOP
yea prolly cause of that
and maybe not as obvious as should be ðŸ˜
Berger PicardOP
so its like page.tsx ic
yeah
Berger PicardOP
damn this should be at the top 

its def in migration guide https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#api-routes