core-api: change ApiFactory.implements to .api

This commit is contained in:
Patrik Oldsberg
2020-09-04 17:45:38 +02:00
parent beb9269841
commit 38b6703102
20 changed files with 54 additions and 59 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ import {
export const apis = [
// TODO(Rugvip): migrate to use /api
createApiFactory({
implements: discoveryApiRef,
api: discoveryApiRef,
deps: { configApi: configApiRef },
factory: ({ configApi }) =>
UrlPatternDiscovery.compile(
@@ -48,7 +48,7 @@ export const apis = [
),
}),
createApiFactory({
implements: graphQlBrowseApiRef,
api: graphQlBrowseApiRef,
deps: { errorApi: errorApiRef, githubAuthApi: githubAuthApiRef },
factory: ({ errorApi, githubAuthApi }) =>
GraphQLEndpoints.from([