Skip to content

FormioMiddlewares

@tsed/formio

Usage

typescript
import { FormioMiddlewares } from "@tsed/formio";

See /packages/third-parties/formio/src/types/domain/Formio.ts.

Overview

ts
interface FormioMiddlewares {
    alias(req: Request, res: Response, next: NextFunction): void;
    params(req: Request, res: Response, next: NextFunction): void;
    accessHandler(req: Request, res: Response, next: NextFunction): void;
    permissionHandler(req: Request, res: Response, next: NextFunction): void;
    restrictRequestTypes(req: Request, res: Response, next: NextFunction): void;
    tokenHandler(req: Request, res: Response, next: NextFunction): void;
}

alias

ts
alias(req: Request, res: Response, next: NextFunction): void;

params

ts
params(req: Request, res: Response, next: NextFunction): void;

accessHandler

ts
accessHandler(req: Request, res: Response, next: NextFunction): void;

permissionHandler

ts
permissionHandler(req: Request, res: Response, next: NextFunction): void;

Authorize all urls based on roles and permissions.

restrictRequestTypes

ts
restrictRequestTypes(req: Request, res: Response, next: NextFunction): void;

tokenHandler

ts
tokenHandler(req: Request, res: Response, next: NextFunction): void;

Released under the MIT License.