app-backend

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-19 11:51:55 +02:00
parent 2dd66bfe2b
commit eec0b15d3b
3 changed files with 2 additions and 5 deletions
-4
View File
@@ -8,13 +8,9 @@ import express from 'express';
import { Logger } from 'winston';
import { PluginDatabaseManager } from '@backstage/backend-common';
// 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 {
appPackageName: string;
@@ -40,6 +40,7 @@ import {
// express uses mime v1 while we only have types for mime v2
type Mime = { lookup(arg0: string): string };
/** @public */
export interface RouterOptions {
config: Config;
logger: Logger;
@@ -85,6 +86,7 @@ export interface RouterOptions {
disableConfigInjection?: boolean;
}
/** @public */
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {