@jfvilas/plugin-kwirth-backend
Version:
Backstage backend plugin for Kwirth plugins
24 lines (20 loc) • 834 B
TypeScript
import express from 'express';
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
import { DiscoveryService, RootConfigService, LoggerService, UserInfoService, AuthService, HttpAuthService } from '@backstage/backend-plugin-api';
type KwirthRouterOptions = {
discoverySvc: DiscoveryService;
configSvc: RootConfigService;
loggerSvc: LoggerService;
userInfoSvc: UserInfoService;
authSvc: AuthService;
httpAuthSvc: HttpAuthService;
};
/**
*
* @param options core services we need for Kwirth to work
* @returns an express Router
*/
declare function createRouter(options: KwirthRouterOptions): Promise<express.Router>;
declare const kwirthPlugin: _backstage_backend_plugin_api.BackendFeature;
export { createRouter, kwirthPlugin as default };
export type { KwirthRouterOptions };