// import { NextRequest, NextResponse } from "next/server";



// export async function PUT(req:NextRequest, {params} : { params: { id: number}}){
//     const body = await req.json()
//     if(!body.name)
//         return NextResponse.json({error:'Name is equied'}, { status: 400})

//     if(params.id>10)
//         return NextResponse.json({error:'User noty found'}, { status: 404})

//     return NextResponse.json({id:1, name: body.name})

// }