graphiql: finalize composability port

This commit is contained in:
Patrik Oldsberg
2021-02-01 19:19:57 +01:00
parent 8dfdec6139
commit f8eefd6c8f
4 changed files with 21 additions and 7 deletions
+12 -2
View File
@@ -14,12 +14,18 @@
* limitations under the License.
*/
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { githubAuthApiRef, errorApiRef } from '@backstage/core';
import { plugin, GraphQLEndpoints, graphQlBrowseApiRef } from '../src';
import {
graphiqlPlugin,
GraphQLEndpoints,
graphQlBrowseApiRef,
GraphiQLPage,
} from '../src';
createDevApp()
.registerPlugin(plugin)
.registerPlugin(graphiqlPlugin)
.registerApi({
api: graphQlBrowseApiRef,
deps: {
@@ -47,4 +53,8 @@ createDevApp()
]);
},
})
.addPage({
title: 'GraphiQL',
element: <GraphiQLPage />,
})
.render();