Sha256: 0b13e6ed91bf80159cd9b4f989acd1a9cc56eab5aceeae8d15b36157aa90321a

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 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/:id/roll', to: 'positions#roll', as: :roll_position
  post 'positions/:id/roll', to: 'positions#do_roll'
  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

  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.22 config/routes.rb
iron_warbler-2.0.7.21 config/routes.rb