backend-defaults: add healthservice
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -24,6 +24,7 @@ import { authServiceFactory } from '@backstage/backend-defaults/auth';
|
||||
import { cacheServiceFactory } from '@backstage/backend-defaults/cache';
|
||||
import { databaseServiceFactory } from '@backstage/backend-defaults/database';
|
||||
import { discoveryServiceFactory } from '@backstage/backend-defaults/discovery';
|
||||
import { rootHealthServiceFactory } from './entrypoints/rootHealth';
|
||||
import { httpAuthServiceFactory } from '@backstage/backend-defaults/httpAuth';
|
||||
import { httpRouterServiceFactory } from '@backstage/backend-defaults/httpRouter';
|
||||
import { lifecycleServiceFactory } from '@backstage/backend-defaults/lifecycle';
|
||||
@@ -58,6 +59,7 @@ export const defaultServiceFactories = [
|
||||
userInfoServiceFactory(),
|
||||
urlReaderServiceFactory(),
|
||||
eventsServiceFactory(),
|
||||
rootHealthServiceFactory(),
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,8 +40,6 @@ export interface HttpRouterService {
|
||||
*/
|
||||
use(handler: Handler): void;
|
||||
|
||||
healthCheckConfig(healthCheckOptions: HttpRouterHealthCheckConfig): void;
|
||||
|
||||
/**
|
||||
* Adds an auth policy to the router. This is used to allow unauthenticated or
|
||||
* cookie based access to parts of a plugin's API.
|
||||
|
||||
Reference in New Issue
Block a user