FileMiddleware

public final class FileMiddleware : Middleware, ServiceType

Serves static files from a public directory.

middlewareConfig = MiddlewareConfig()
middlewareConfig.use(FileMiddleware.self)
services.register(middlewareConfig)

FileMiddleware will default to DirectoryConfig‘s working directory with "/Public" appended.