diff --git a/packages/backend-app-api/src/services/implementations/httpRouterService.test.ts b/packages/backend-app-api/src/services/implementations/httpRouter/httpRouterFactory.test.ts similarity index 97% rename from packages/backend-app-api/src/services/implementations/httpRouterService.test.ts rename to packages/backend-app-api/src/services/implementations/httpRouter/httpRouterFactory.test.ts index 89f6db2ac8..7717f4116e 100644 --- a/packages/backend-app-api/src/services/implementations/httpRouterService.test.ts +++ b/packages/backend-app-api/src/services/implementations/httpRouter/httpRouterFactory.test.ts @@ -18,7 +18,7 @@ import { HttpRouterService, ServiceFactory, } from '@backstage/backend-plugin-api'; -import { httpRouterFactory } from './httpRouterService'; +import { httpRouterFactory } from './httpRouterFactory'; describe('httpRouterFactory', () => { it('should register plugin paths', async () => { diff --git a/packages/backend-app-api/src/services/implementations/httpRouterService.ts b/packages/backend-app-api/src/services/implementations/httpRouter/httpRouterFactory.ts similarity index 100% rename from packages/backend-app-api/src/services/implementations/httpRouterService.ts rename to packages/backend-app-api/src/services/implementations/httpRouter/httpRouterFactory.ts diff --git a/packages/backend-app-api/src/services/implementations/httpRouter/index.ts b/packages/backend-app-api/src/services/implementations/httpRouter/index.ts new file mode 100644 index 0000000000..f2db660414 --- /dev/null +++ b/packages/backend-app-api/src/services/implementations/httpRouter/index.ts @@ -0,0 +1,18 @@ +/* + * Copyright 2023 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { httpRouterFactory } from './httpRouterFactory'; +export type { HttpRouterFactoryOptions } from './httpRouterFactory'; diff --git a/packages/backend-app-api/src/services/implementations/index.ts b/packages/backend-app-api/src/services/implementations/index.ts index 2365ff36f4..de5350e72d 100644 --- a/packages/backend-app-api/src/services/implementations/index.ts +++ b/packages/backend-app-api/src/services/implementations/index.ts @@ -14,6 +14,8 @@ * limitations under the License. */ +export * from './httpRouter'; + export { cacheFactory } from './cacheService'; export { configFactory } from './configService'; export { databaseFactory } from './databaseService'; @@ -24,9 +26,7 @@ export { permissionsFactory } from './permissionsService'; export { schedulerFactory } from './schedulerService'; export { tokenManagerFactory } from './tokenManagerService'; export { urlReaderFactory } from './urlReaderService'; -export { httpRouterFactory } from './httpRouterService'; export { rootHttpRouterFactory } from './rootHttpRouterService'; export { lifecycleFactory } from './lifecycleService'; export { rootLifecycleFactory } from './rootLifecycleService'; -export type { HttpRouterFactoryOptions } from './httpRouterService'; export type { RootHttpRouterFactoryOptions } from './rootHttpRouterService';