• Creates a middleware for serving static assets from a specified public directory.

    Parameters

    • publicPath: string

      The path to the public directory where the assets are located.

    • enableCompression: boolean = false

    Returns HoosatRequestHandler

    The CORS middleware.

Generated using TypeDoc