DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 970,177 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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)

🌚 Life is too short to browse without dark mode