Skip to content

Commit a6afccd

Browse files
Merge pull request #80 from grafana/malcolmholmes/additional-endpoints
Add additional proxy endpoints
2 parents 138c6ea + 1275f45 commit a6afccd

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to the "grafana-vscode" extension will be documented in this file.
44

5+
## v0.0.16
6+
- Add additional proxy endpoints (to support more dashboards/etc) (#80)
7+
58
## v0.0.15
69
- Follow redirects and don't fail on trailing slashes (#77)
710
- Theming (light/dark) support for Grafana (#74)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "Grafana",
55
"description": "Grafana Editor",
66
"icon": "public/grafana_icon.png",
7-
"version": "0.0.15",
7+
"version": "0.0.16",
88
"license": "Apache-2.0",
99
"repository": {
1010
"type": "git",

src/server.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,18 @@ export async function startServer(secrets: vscode.SecretStorage, extensionPath:
188188
"/public/*",
189189
"/api/datasources/proxy/*",
190190
"/api/datasources/*",
191+
"/api/plugins/*",
191192
];
192193
for (const path of mustProxyGET) {
193194
app.get(path, function (req, res) {
194195
proxy.web(req, res, {});
195196
});
196197
}
197198

198-
const mustProxyPOST = ["/api/ds/query"];
199+
const mustProxyPOST = [
200+
"/api/ds/query",
201+
"/api/datasources/proxy/*",
202+
];
199203
for (const path of mustProxyPOST) {
200204
app.post(path, function (req, res) {
201205
proxy.web(req, res, {});

0 commit comments

Comments
 (0)