Sha256: a113ae97c231880701695399f61dd35f6517a539aebdb4ad3f3640845ebcfd7f

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

Iro::Engine.routes.draw do
  root to: '/iro/application#home'

  resources :alerts

  post 'datapoints', to: '/iro/datapoints#create'
  get  'datapoints', to: '/iro/datapoints#index'

  resources :option_watches

  get  'positions/duplicate/:id', to: 'positions#new',    as: :duplicate_position
  post 'positions/propose', to: 'positions#propose',      as: :propose_position
  get  'positions/:id/prepare', to: 'positions#prepare',  as: :prepare_to_roll_position, defaults: { template: 'gameui' }
  match  'positions/:id/prepare2', to: 'positions#prepare2', as: :prepare2_position, defaults: { template: 'gameui' }, via: [ :get, :post ]
  post 'positions/:id/roll', to: 'positions#do_roll',     as: :roll_position
  get  'positions/:id/refresh', to: 'positions#refresh',  as: :refresh_position
  resources :positions
  resources :profiles

  get 'purses/:id/gameui', to: 'purses#show', as: :gameui_purse, defaults: { template: 'gameui' }
  get 'purses/:id', to: 'purses#show', as: :purse, defaults: { template: 'show' }
  resources :purses

  get 'stocks/refresh', to: 'stocks#refresh', as: :refresh_stocks
  resources :stocks

  resources :strategies

  namespace :api do
    # resources :stocks
    get 'stocks/:ticker/period/:period', to: 'stocks#show'
    get 'stocks/:ticker/from/:begin_on', to: 'stocks#show'
    get 'stocks/:ticker/begin_on/:begin_on', to: 'stocks#show'
    get 'stocks/:ticker/from/:begin_on/to/:end_on', to: 'stocks#show'
    get 'stocks/:ticker/begin_on/:begin_on/end_on/:end_on', to: 'stocks#show'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.25 config/routes.rb