UNPKG

@httpc/kit

Version:

httpc toolbox for building function-based API with minimal code and end-to-end type safety

4 lines (3 loc) 284 B
import { HttpCServerMiddleware } from "@httpc/server"; export declare function Authenticated(permissions?: string | ((...args: any[]) => string)): HttpCServerMiddleware; export declare function Authorized(permissions: string | ((...args: any[]) => string)): HttpCServerMiddleware;