APIs
API routing is achieved using the same directory and file-naming conventions used by page routing. The directory location for an API is under pages/api
and the hosted API is available at /api
.
TODO: Show example
API routing is achieved using the same directory and file-naming conventions used by page routing. The directory location for an API is under pages/api
and the hosted API is available at /api
.
TODO: Show example