feat: attempt to fix the crud with auth

This commit is contained in:
Riccardo
2024-07-07 17:47:57 +02:00
parent ea73368cc9
commit 637520dbf2
27 changed files with 622 additions and 53 deletions

View File

@@ -0,0 +1,22 @@
import { NextRequest, NextResponse } from 'next/server';
export async function GET(
request: NextRequest,
{ params }: { params: { id: number } }
) {
return NextResponse.json(`GET ${params.id}`);
}
export async function PUT(
request: NextRequest,
{ params }: { params: { id: number } }
) {
return NextResponse.json(`PUT ${params.id}`);
}
export async function DELETE(
request: NextRequest,
{ params }: { params: { id: number } }
) {
return NextResponse.json(`DELETE ${params.id}`);
}