Sha256: 7c67df190f7c02196a86dcc040b370d64084bdabc4413699a24b2b9ba85ae26d

Contents?: true

Size: 283 Bytes

Versions: 6

Compression:

Stored size: 283 Bytes

Contents

module SimplePvr
  module Server
    class AppController < BaseController
      get '/app/*' do |path|
        send_file File.join(settings.public_folder, path)
      end

      get '/*' do
        send_file File.join(settings.public_folder, 'index.html')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_pvr-1.1.0 lib/simple_pvr/server/app_controller.rb
simple_pvr-1.0.0 lib/simple_pvr/server/app_controller.rb
simple_pvr-0.0.4 lib/simple_pvr/server/app_controller.rb
simple_pvr-0.0.3 lib/simple_pvr/server/app_controller.rb
simple_pvr-0.0.2 lib/simple_pvr/server/app_controller.rb
simple_pvr-0.0.1 lib/simple_pvr/server/app_controller.rb