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

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

Deno-powered framework for building business web apps
Go to Latest
import * as netzo from "https://deno.land/x/netzo@0.3.91/core/plugins/api/mod.ts";

Variables

A fresh plugin that registers middleware and handlers to to mount RESTful API routes on the /api route path.

Functions

Returns the converted HTTP error response from the given error. If the error is an instance of Deno.errors.NotFound, a HTTP 404 Not Found error response is returned. This is done to translate errors thrown from logic that's separated by concerns.