Skip to main content
Version: Next

createRouter()

Home > @backstage/plugin-kubernetes-backend > createRouter

Warning: This API is now obsolete.

Please migrate to the new backend system as this will be removed in the future.

import { KubernetesBuilder } from '@backstage/plugin-kubernetes-backend';
const { router } = await KubernetesBuilder.createBuilder({
logger,
config,
}).build();

creates and configure a new router for handling the kubernetes backend APIs

Signature:

function createRouter(options: RouterOptions): Promise<express.Router>;

Parameters

Parameter

Type

Description

options

RouterOptions

specifies the options required by this plugin

**Returns:**

Promise<express.Router>

a new router