404kacper / Cloud-Professor

Hybrid encryption file storage application. Utilizes modern concepts of Web3 to encrypt and store data.
Apache License 2.0
0 stars 1 forks source link

API Routes - NextResponse/Request objects #4

Open 404kacper opened 11 months ago

404kacper commented 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.

404kacper commented 11 months ago

Started implementing this approach since api/user/files/[id]/route.ts