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:
@@ -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[]));
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user