Sha256: dce4ff141a725e8f98e2410a4e9812d2c6b0d78062aaa3860ff35ae27672cb93

Contents?: true

Size: 965 Bytes

Versions: 4

Compression:

Stored size: 965 Bytes

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
  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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smartkiosk-server-0.9.3 config/routes.rb
smartkiosk-server-0.9.2 config/routes.rb
smartkiosk-server-0.9.1 config/routes.rb
smartkiosk-server-0.9.0 config/routes.rb