init(archivePath : URL, redirectRoot : String?, redirectMissingTrailingSlash : Bool)
Create a new middleware that serves files from the DocC archive at
archivePath
.Framework
struct VaporDocCMiddleware
init(archivePath : URL, redirectRoot : String?, redirectMissingTrailingSlash : Bool)
archivePath
.let archivePath : URL
let redirectMissingTrailingSlash : Bool
true
the /documentation
and /tutorials
endpoints will be redirected to /documentation/
and /tutorials/
respectively.let redirectRoot : String?
/
) to. When nil
no redirection will occur.Vapor.Middleware