Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage: (656 commits) Update playback-order-component.yaml (#2495) feat: rework Api Explorer components Add GitLab integration for scaffolder feat(catalog-backend): support GHE and other GitHub providers Add scaffolder config to monorepo (#2492) Simplify code prettified md Added PlantUML diagrams in backstage.io docs (#2413) chore(deps): bump nodegit from 0.26.5 to 0.27.0 (#2454) grammar correction added description header field added description header field added description header field added description header field added description header field Condense if to else if Update docs Reword Make access optional eslintignore: add template dirs ...
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { errorHandler } from '@backstage/backend-common';
|
||||
import { errorHandler, resolvePackagePath } from '@backstage/backend-common';
|
||||
import express from 'express';
|
||||
import Router from 'express-promise-router';
|
||||
import { Logger } from 'winston';
|
||||
@@ -26,9 +26,9 @@ import { createModule as createCatalogModule } from '@backstage/plugin-catalog-g
|
||||
import { Config } from '@backstage/config';
|
||||
import helmet from 'helmet';
|
||||
|
||||
const schemaPath = path.resolve(
|
||||
require.resolve('@backstage/plugin-graphql-backend/package.json'),
|
||||
'../schema.gql',
|
||||
const schemaPath = resolvePackagePath(
|
||||
'@backstage/plugin-graphql-backend',
|
||||
'schema.gql',
|
||||
);
|
||||
|
||||
export interface RouterOptions {
|
||||
|
||||
Reference in New Issue
Block a user