createStaticFileHandler function

Handler createStaticFileHandler({
  1. String path = 'public',
})

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));
}