Function serveStatic

  • Creates a request handler that serves static content from the given root directory.

    Parameters

    • root: string

      Root directory to serve files from.

    • config: ServeStaticConfig = {}

      Static contents service configuration.

    Returns RequestHandler<HttpMeans & RouterMeans>

    New HTTP route processing handler.

Generated using TypeDoc