stack

Home > @infiniteobjects/express-cloud-function > IFunctionServerConfig

IFunctionServerConfig interface

Function configuration

Signature:

export interface IFunctionServerConfig 

Properties

Property Modifiers Type Description
errorHandlers   ErrorRequestHandler[] Error middleware to add to the request
name   string Function name
post   RequestHandler[] Middleware to add to the request after the route handlers.
pre   RequestHandler[] Middleware to add before the route handlers. A good example is loadUser
routes   RouteConfig[] The routes for this function
staticPaths   string[] Static paths to serve (MUST BE ABSOLUTE PATHS)
version   string Function version