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 body = await request.json();
|
||||||
const res = await fetch(`${API_BASE}/api/users/${id}/role`, {
|
const res = await fetch(`${API_BASE}/api/users/${id}/role`, {
|
||||||
|
method: 'PATCH',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
Authorization: `Bearer ${session.accessToken}`,
|
Authorization: `Bearer ${session.accessToken}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user