Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/alosaur/examples/hooks/decorators/authorize-hook.decorator.ts>Authorize

Alosaur - Deno web framework with many ES Decorators
Latest
function Authorize
import { Authorize } from "https://deno.land/x/alosaur@v1.1.1/examples/hooks/decorators/authorize-hook.decorator.ts";

Authorize decorator with role

Parameters

optional
role: AuthorizeRoleType

Returns

Function