Sha256: 51abdf3c4cf9bec659ee091c50b88218d785073e99a0dec72e7ae5e4b7f8bf7f

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 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' }
  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

2 entries across 2 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.24 config/routes.rb
iron_warbler-2.0.7.23 config/routes.rb