createStaticFileHandler function
Creates a Handler that serves static files within provided path
.
Defaults to the public
directory.
Implementation
Handler createStaticFileHandler({String path = 'public'}) {
return fromShelfHandler(createStaticHandler(path));
}