Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/plugins/api/hooks/mod.ts

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
import * as netzo from "https://deno.land/x/netzo@0.4.49/plugins/api/hooks/mod.ts";

Variables

A hook that authenticates requests using the provided API key by checking the "x-api-key" header or "$apiKey" query parameter.

A hook that logs general request information to the console.

A utility hook to resolve extra properties on the context data.

A hook that validates the request data using the provided Zod schema.

Functions

Returns a new function that wraps an existing async function with hooks.

Initializes a hook settings object with the given middleware.