graphql-backend

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-19 14:44:58 +02:00
parent 9d322594ac
commit 12d29b72eb
3 changed files with 2 additions and 5 deletions
-4
View File
@@ -7,13 +7,9 @@ import { Config } from '@backstage/config';
import express from 'express';
import { Logger } from 'winston';
// Warning: (ae-missing-release-tag) "createRouter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export function createRouter(options: RouterOptions): Promise<express.Router>;
// Warning: (ae-missing-release-tag) "RouterOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface RouterOptions {
// (undocumented)
@@ -25,11 +25,13 @@ import { Config } from '@backstage/config';
import helmet from 'helmet';
import { makeExecutableSchema } from '@graphql-tools/schema';
/** @public */
export interface RouterOptions {
logger: Logger;
config: Config;
}
/** @public */
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {