Fix typos in 01-index.md

* discoverty -> discovery
* Fixed comment that says to use `getBaseUrl`, instead of the correct `getExternalBaseUrl` to get the external URL of a service.

Signed-off-by: Eric <ericbsatterwhite@gmail.com>
This commit is contained in:
Eric
2023-08-27 21:56:34 -05:00
committed by GitHub
parent e6b0ae29c1
commit 99158a7158
@@ -373,7 +373,7 @@ createBackendPlugin({
discovery: coreServices.discovery,
},
async init({ discovery }) {
const url = await discoverty.getBaseUrl('derp'); // can also use discovery.getBaseUrl to retrieve external URL
const url = await discovery.getBaseUrl('derp'); // can also use discovery.getExternalBaseUrl to retrieve external URL
const response = await fetch(`${url}/hello`);
},
});