GET id from client in backend
Unanswered
Devon Rex posted this in #help-forum
Devon RexOP
const response = await axios.get(
How to capture it in backend?
I tried:
export async function GET(request: NextRequest, {params} : {params: {id: string}),
but params.id is undefined.
Folder structure: /api/relations/requests/[id]/route.ts
/api/relations/requests/${id}?id=)How to capture it in backend?
I tried:
export async function GET(request: NextRequest, {params} : {params: {id: string}),
but params.id is undefined.
Folder structure: /api/relations/requests/[id]/route.ts