Skip to main content
Module

x/drash/src/http/server.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://deno.land/x/drash@v2.7.0/src/http/server.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.