I have a problem calling api from NextJs.
The structure of the api part in the project is as follows.
project
....
src
....
pages
....
api
I called the api using the fetch function, but I got a 404 error.
How can I get rid of the error?
Oldest comments (0)