Global

Methods

checkResource(req, res, next)

Check API resource and skip first middleware for specific resource
Parameters:
Name Type Description
req * HTTP Request object
res * HTTP Response object
next * Method executes next middleware
Source:

genCors(req, res, next)

Sets General CORS Response headers
Parameters:
Name Type Description
req * HTTP Request object
res * HTTP Response object
next * Method executes next middleware
Source:

specificCors(req, res, next)

Sets Specific CORS Reponse headers
Parameters:
Name Type Description
req * HTTP Request object
res * HTTP Response object
next * Method executes next middleware
Source: