DEV Community

Marko Petrovic
Marko Petrovic

Posted on

API call is not working

I have a problem calling api from NextJs.
The structure of the api part in the project is as follows.

project
     ....
     src
          ....
          pages
                ....
                api
Enter fullscreen mode Exit fullscreen mode

I called the api using the fetch function, but I got a 404 error.
How can I get rid of the error?

Top comments (0)