Skip to main content
Version: Next

HttpRouterService.use()

Home > @backstage/backend-plugin-api > HttpRouterService > use

Registers an Express request handler under the plugin's base router. This typically makes its base path /api/<plugin-id>.

Signature:

use(handler: Handler): void;

Parameters

Parameter

Type

Description

handler

Handler

**Returns:**

void