fix(route): ensure PATCH method is explicitly defined in fetch request

This commit is contained in:
Nils-Johan Gynther
2026-04-18 09:52:51 +02:00
parent b4280f020e
commit c8489ed613
@@ -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}`,