Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/danet/src/guard/mod.ts>GuardExecutor

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
class GuardExecutor
import { GuardExecutor } from "https://deno.land/x/danet@1.3.1/src/guard/mod.ts";

Constructors

new
GuardExecutor(injector: Injector)

Methods

executeAllRelevantGuards(
context: HttpContext,
Controller: ControllerConstructor,
ControllerMethod: Callback,
)
executeControllerAndMethodAuthGuards(
context: HttpContext,
Controller: ControllerConstructor,
ControllerMethod: Callback,
)
executeGlobalGuard(context: HttpContext)
executeGuard(guard: AuthGuard, context: HttpContext)
executeGuardFromMetadata(context: HttpContext, constructor: Constructor | Function)