Sha256: e1ee72aaade0746215f9454110f9f509186407ff4bf37764b61391822a09d932

Contents?: true

Size: 1.03 KB

Versions: 17

Compression:

Stored size: 1.03 KB

Contents

require 'sidekiq/web'

Rails.application.class.routes.draw do
  ActiveAdmin.routes(self)

  root :to => 'welcome#index'

  devise_for :users, ActiveAdmin::Devise.config

  constraints lambda { |request|
    request.env["warden"].authenticate? and request.env['warden'].user.root?
  } do
    mount Sidekiq::Web => '/sidekiq'
  end

  mount DAV4Rack::Handler.new(
    :root => Rails.root.join('public/builds').to_s,
    :root_uri_path => '/builds/',
    :resource_class => DAV4Rack::BuildResource,
    :log_to => Rails.root.join('log/webdav.log').to_s
  ) => '/builds/'

  resources :terminal_pings do
    collection do
      get :providers
    end
  end


  resources :collections
  resources :system_receipt_templates

  resources :terminal_orders do
    member do
      post :acknowledge
      post :complete
    end
  end

  resources :terminal_builds do
    member do
      get :hashes
    end
  end

  resources :payments do
    collection do
      get :limits
    end
    member do
      post :pay
    end
  end

  resources :session_records
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
smartkiosk-server-0.11.11 config/routes.rb
smartkiosk-server-0.11.10 config/routes.rb
smartkiosk-server-0.11.9 config/routes.rb
smartkiosk-server-0.11.8 config/routes.rb
smartkiosk-server-0.11.7 config/routes.rb
smartkiosk-server-0.11.6 config/routes.rb
smartkiosk-server-0.11.5 config/routes.rb
smartkiosk-server-0.11.4 config/routes.rb
smartkiosk-server-0.11.3 config/routes.rb
smartkiosk-server-0.11.2 config/routes.rb
smartkiosk-server-0.11.1 config/routes.rb
smartkiosk-server-0.11 config/routes.rb
smartkiosk-server-0.10.19 config/routes.rb
smartkiosk-server-0.10.18 config/routes.rb
smartkiosk-server-0.10.17 config/routes.rb
smartkiosk-server-0.10.16 config/routes.rb
smartkiosk-server-0.10.15 config/routes.rb