Sha256: 0f9f98ff189bb83f98141b1c2f8a52a4993c9cecc015f49de99234112bf17709

Contents?: true

Size: 336 Bytes

Versions: 11

Compression:

Stored size: 336 Bytes

Contents

require "rack/builder"


module SlideEmUp
  class Routes

    def self.run(presentation, opts = {})
      Rack::Builder.new do
        map '/remote' do
          run SlideEmUp::RemoteAPI.new(opts[:remote_key])
        end

        map '/' do
          run SlideEmUp::SlidesAPI.new(presentation)
        end
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
slide-em-up-0.3.5 lib/slide-em-up/routes.rb
slide-em-up-0.3.4 lib/slide-em-up/routes.rb
slide-em-up-0.3.3 lib/slide-em-up/routes.rb
slide-em-up-0.3.2 lib/slide-em-up/routes.rb
slide-em-up-0.3.1 lib/slide-em-up/routes.rb
slide-em-up-0.3.0 lib/slide-em-up/routes.rb
slide-em-up-0.2.4 lib/slide-em-up/routes.rb
slide-em-up-0.2.3 lib/slide-em-up/routes.rb
slide-em-up-0.2.2 lib/slide-em-up/routes.rb
slide-em-up-0.2.1 lib/slide-em-up/routes.rb
slide-em-up-0.2.0 lib/slide-em-up/routes.rb