ResourceHandler
import { ResourceHandler } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";
This class works as a container for resource handlers. This class contains the paths where the resolver will be invoked. This class contains the locations where the resolver should look up for resources. This class contains the indexes of the paths. This class contains the resolver to be used when intercepting.
class ResourceHandler implements [[Mandarine.MandarineCore].IResourceHandler] { }
public resourceHandlerIndex: Array<string> | undefined;
public resourceHandlerLocations: Array<string> | undefined;
public resourceHandlerPath: Array<RegExp> | undefined;
public addResourceResolver(resolver: Mandarine.MandarineMVC.HTTPResolvers.ResourceResolver): ResourceHandler;
§Properties
§
resourceCors: Mandarine.MandarineMVC.CorsMiddlewareOption | undefined
[src]§
resourceResolver: Mandarine.MandarineMVC.HTTPResolvers.ResourceResolver | undefined
[src]§Methods
§
addResourceCors(cors: Mandarine.MandarineMVC.CorsMiddlewareOption): ResourceHandler
[src]§
addResourceHandler(...resourceHandlerPath: Array<RegExp>): ResourceHandler
[src]§
addResourceHandlerIndex(...resourceHandlerIndex: Array<string>): ResourceHandler
[src]§
addResourceHandlerLocation(...resourceHandlerLocations: Array<string>): ResourceHandler
[src]§
addResourceResolver(resolver: Mandarine.MandarineMVC.HTTPResolvers.ResourceResolver): ResourceHandler
[src]