[v9.3.x] DataSourceWithBackend - Set postResource method to POST (#59117)

DataSourceWithBackend - Set postResource method to POST (#59114)

Set postResource method to POST

(cherry picked from commit 4eed56193f)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-11-22 09:15:04 -05:00
committed by GitHub
co-authored by Andreas Christou
parent 0bb76df454
commit 8ae02b4b7b
@@ -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}`,