graphiql: finalize composability port
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user