Skip to content

redirectMiddleware

@tsed/openapi-utils

Usage

typescript
import { redirectMiddleware } from "@tsed/openapi-utils";

See /packages/specs/openapi-utils/src/middlewares/redirectMiddleware.ts.

Overview

ts
function redirectMiddleware(path: string): () => void;

Description

Redirect to the same path with a trailing slash

Released under the MIT License.