Skip to main content
Module

x/drash/tests/deps.ts>Drash.Server#addResource

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method Drash.Server.prototype.addResource
Re-export
import { Drash } from "https://deno.land/x/drash@v2.7.0/tests/deps.ts";
const { Server } = Drash;

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.