Update headers for REST Controller

This commit is contained in:
Amatsagu
2022-01-01 18:38:13 +01:00
committed by GitHub
parent 8ad41e8f57
commit ca6dedc975

View File

@@ -25,7 +25,8 @@ export async function runMethod<T = any>(
const result = await fetch(url, {
body: JSON.stringify(body || {}),
headers: {
authorization: rest.secretKey,
"Authorization": rest.secretKey,
"Content-Type": "application/json"
},
method: method.toUpperCase(),
}).catch((error) => {