www
www copied to clipboard
next.js 13.0 & above `api` route
Where is the project's api
route? I can't seem to find it in the src
directory. I need some help migrating my Spotify now-playing
functionality from page/api
to app/api
.
It would be great if I could get some reference from yours on how to migrate and utilize the proper route handler methods(GET, POST, etc.)
this project doesn't use an api route. i have a separate and private api that i've built but that isn't public and i don't really intend for it to be either because of some things with fetching current playing on apple music.
my now playing functionality isn't spotify, btw.