backend-defaults: add healthservice

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-05-17 15:18:16 +02:00
parent 8d4735767d
commit b26877ffc5
2 changed files with 2 additions and 2 deletions
@@ -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.