mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataSourceWithBackend - Set postResource method to POST (#59114)
Set postResource method to POST
This commit is contained in:
parent
08e87a217c
commit
4eed56193f
@ -299,7 +299,7 @@ class DataSourceWithBackend<
|
|||||||
const result = await lastValueFrom(
|
const result = await lastValueFrom(
|
||||||
getBackendSrv().fetch<T>({
|
getBackendSrv().fetch<T>({
|
||||||
...options,
|
...options,
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
headers: options?.headers ? { ...options.headers, ...headers } : headers,
|
headers: options?.headers ? { ...options.headers, ...headers } : headers,
|
||||||
data: data ?? { ...data },
|
data: data ?? { ...data },
|
||||||
url: `/api/datasources/${this.id}/resources/${path}`,
|
url: `/api/datasources/${this.id}/resources/${path}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user