From 4148e3d1220827198aa846db7533d582df212e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 9 Apr 2025 11:38:29 +0200 Subject: [PATCH] Update root-http-router.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- docs/backend-system/core-services/root-http-router.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/backend-system/core-services/root-http-router.md b/docs/backend-system/core-services/root-http-router.md index 9ee8599eb5..7a268e27fc 100644 --- a/docs/backend-system/core-services/root-http-router.md +++ b/docs/backend-system/core-services/root-http-router.md @@ -74,7 +74,7 @@ There's additional options that you can pass to configure the root HTTP Router s You can configure the root HTTP Router service by passing the options to the `createBackend` function. ```ts -import { rootHttpRouterServiceFactory } from '@backstage/backend-app-api'; +import { rootHttpRouterServiceFactory } from '@backstage/backend-defaults/rootHttpRouter'; import { RequestHandler } from 'express'; import morgan from 'morgan'; @@ -144,7 +144,7 @@ The root HTTP Router service also allows for configuration of the underlying Nod A `applyDefaults` helper is also made available to use the default app/router configuration while still enabling custom server configuration ```ts -import { rootHttpRouterServiceFactory } from '@backstage/backend-app-api'; +import { rootHttpRouterServiceFactory } from '@backstage/backend-defaults/rootHttpRouter'; const backend = createBackend();