interface ServeDirOptions
Interface for serveDir options.
Properties
Serves the files under the given directory root. Defaults to your current directory.
Specified that part is stripped from the beginning of the requested pathname.
optional
showDirListing: boolean = falseEnable directory listing.
optional
showDotfiles: boolean = falseServes dotfiles.
optional
enableCors: boolean = falseEnable CORS via the "Access-Control-Allow-Origin" header.
optional
etagAlgorithm: AlgorithmIdentifier = "SHA-256"The algorithm to use for generating the ETag.