Module

x/drash/mod.ts>Server#addResource

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method Server.prototype.addResource
import { Server } from "https://dotland.deno.dev/x/drash@v2.7.0/mod.ts";

Add the given resource to this server's list of resources.

Parameters

resourceClass: Drash.Resource
  • The resource class to instantiate and store in the resources map.