Merge pull request #15319 from Parsifal-M/update-backstage-proxy-docs

Added /api/ to the example as its missing and wont work without it
This commit is contained in:
Fredrik Adelöw
2022-12-20 15:30:31 +01:00
committed by GitHub
+1 -1
View File
@@ -79,7 +79,7 @@ proxy:
```ts
// Inside your component
const backendUrl = config.getString('backend.baseUrl');
fetch(`${backendUrl}/proxy/frobs/list`)
fetch(`${backendUrl}/api/proxy/frobs/list`)
.then(response => response.json())
.then(payload => setFrobs(payload as Frob[]));
```