MandarineMvc.Routing.RoutingOptions
import type { MandarineMvc } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mvc-framework/mandarine-mvc.ns.ts";
const { RoutingOptions } = MandarineMvc.Routing;
Refers to the possible configurations a route can have.
interface RoutingOptions {
[key: string]: any;
cors?: CorsMiddlewareOption;
guards?: Array<Function | GuardTarget>;
middleware?: Array<NonComponentMiddlewareTarget | Mandarine.Types.MiddlewareComponent>;
responseStatus?: HttpStatusCode;
withPermissions?: Mandarine.Security.Auth.Permissions;
}§Properties
§
cors?: CorsMiddlewareOption
[src]§
guards?: Array<Function | GuardTarget>
[src]§
middleware?: Array<NonComponentMiddlewareTarget | Mandarine.Types.MiddlewareComponent>
[src]§
responseStatus?: HttpStatusCode
[src]§
withPermissions?: Mandarine.Security.Auth.Permissions
[src]