class Amber::Pipe::Static

Overview

Serves static files from the given public directory. By default, Amber turns off serving a directory listing page.

Defined in:

amber/pipes/static.cr

Constructors

Constructor Detail

def self.new(public_dir : String, fallthrough = false, directory_listing = false) #

Sets the default behavior for static file serving to NOT list the directory contents.


[View source]