Module: Parade::Preshow::Server

Defined in:
lib/parade-preshow.rb

Class Method Summary collapse

Class Method Details

.included(server) ⇒ Object



8
9
10
11
12
# File 'lib/parade-preshow.rb', line 8

def self.included(server)
  server.get "/preshow" do
    Dir.glob("#{settings.presentation_directory}/preshow/*").map { |path| File.basename(path) }.to_json
  end
end