Hi,
I faced the same problem.
Even in a project that is using App Router, legacy “pages/api” directory works.
Example code
Please try creating a route in the API directory.
Hi,
I faced the same problem.
Even in a project that is using App Router, legacy “pages/api” directory works.
Example code
Please try creating a route in the API directory.