From 4a3399e953df51df2a9001cf2b6f0bd785940882 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Tue, 7 Apr 2020 12:52:31 -0700 Subject: [PATCH] DataSourceWithBackend: resources response (#23411) --- packages/grafana-runtime/src/utils/DataSourceWithBackend.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index 889ad0c8b85..7d408a0eff7 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -104,14 +104,14 @@ export class DataSourceWithBackend< /** * Make a GET request to the datasource resource path */ - async getResource(path: string, params?: any): Promise> { + async getResource(path: string, params?: any): Promise { return getBackendSrv().get(`/api/datasources/${this.id}/resources/${path}`, params); } /** * Send a POST request to the datasource resource path */ - async postResource(path: string, body?: any): Promise> { + async postResource(path: string, body?: any): Promise { return getBackendSrv().post(`/api/datasources/${this.id}/resources/${path}`, { ...body }); }