azure-sites - Deprecated legacy backend (#2042)

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin 2024-12-01 12:02:49 -06:00 committed by GitHub
parent 067af9a780
commit 21014532bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
'@backstage-community/plugin-azure-sites-backend': patch
---
Deprecated `createRouter` and its router options in favour of the new backend system.

View File

@ -58,10 +58,10 @@ export class AzureSitesConfig {
const azureSitesPlugin: BackendFeature;
export default azureSitesPlugin;
// @public (undocumented)
// @public @deprecated (undocumented)
export function createRouter(options: RouterOptions): Promise<express.Router>;
// @public (undocumented)
// @public @deprecated (undocumented)
export interface RouterOptions {
// (undocumented)
auth?: AuthService;

View File

@ -40,7 +40,10 @@ import {
PermissionsService,
} from '@backstage/backend-plugin-api';
/** @public */
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* @public */
export interface RouterOptions {
logger: LoggerService;
azureSitesApi: AzureSitesApi;
@ -51,7 +54,10 @@ export interface RouterOptions {
httpAuth?: HttpAuthService;
}
/** @public */
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* @public */
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {