DataSourceWithBackend - Set postResource method to POST (#59114)

Set postResource method to POST
This commit is contained in:
Andreas Christou 2022-11-22 13:31:47 +00:00 committed by GitHub
parent 08e87a217c
commit 4eed56193f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,7 +299,7 @@ class DataSourceWithBackend<
const result = await lastValueFrom(
getBackendSrv().fetch<T>({
...options,
method: 'GET',
method: 'POST',
headers: options?.headers ? { ...options.headers, ...headers } : headers,
data: data ?? { ...data },
url: `/api/datasources/${this.id}/resources/${path}`,