Open 404kacper opened 11 months ago
According to the docs: https://nextjs.org/docs/pages/building-your-application/routing/api-routes
NextApiResponse/Request is more appropriate for api routes. NextResponse/Request should be used in middlewares.
Started implementing this approach since api/user/files/[id]/route.ts
According to the docs: https://nextjs.org/docs/pages/building-your-application/routing/api-routes
NextApiResponse/Request is more appropriate for api routes. NextResponse/Request should be used in middlewares.