fix(route): ensure PATCH method is explicitly defined in fetch request
This commit is contained in:
@@ -16,6 +16,7 @@ export async function PATCH(
|
||||
|
||||
const body = await request.json();
|
||||
const res = await fetch(`${API_BASE}/api/users/${id}/role`, {
|
||||
method: 'PATCH',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${session.accessToken}`,
|
||||
|
||||
Reference in New Issue
Block a user