Added /api/ to the example as its missing and wont work without it

Signed-off-by: Peter Macdonald <macdonald.peter90@gmail.com>
This commit is contained in:
Peter Macdonald
2022-12-20 11:12:02 +01:00
parent d1198cb690
commit 647d56b6ce
+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[]));
```