Interface ServeStaticOptions

interface ServeStaticOptions {
    contentType?: string;
    index?: string | boolean;
}

Properties

Properties

contentType?: string

The content-type to serve the file as. Only valid when localPath points to a file. If localPath points to a directory, the content types for all files will be inferred.

index?: string | boolean

By default API.static will also serve 'index.html' in response to a request on a directory. To disable this set false or to supply a new index pass a string.

Generated using TypeDoc