• Creates a middleware object for serving static files. See StaticFileOpts for more detailed information Can't really imagine needing to use this directly, instead you should just define the staticFiles field in the createApiServer

    Returns

    Static File Middles

    Parameters

    Returns ((req: IncomingMessage, res: ServerResponse) => Promise<boolean>)

      • (req: IncomingMessage, res: ServerResponse): Promise<boolean>
      • Parameters

        • req: IncomingMessage
        • res: ServerResponse

        Returns Promise<boolean>

Generated using TypeDoc