Sha256: 00609b6bcd8efdacdc21a756b1f552d980a8ce6a8465cc883faa40524a17d5df

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 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

  match 'positions/:id/close',     to: 'positions#close',    as: :close_position, via: [ :get, :post ]
  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 ]
  match 'positions/:id/prepare3',  to: 'positions#prepare3', as: :prepare3_position,        defaults: { template: 'gameui' }, via: [ :get, :post ]
  post  'positions/:id/roll',      to: 'positions#do_roll',  as: :roll_position
  get   'positions/:id/sync',      to: 'positions#sync',     as: :sync_position
  resources :positions
  resources :profiles

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

  get 'stocks/sync', to: 'stocks#sync', as: :sync_stocks
  resources :stocks

  resources :strategies

  get 'api/oauth2-redirect.html', to: 'api#oauth2_redirect'
  namespace :api do
    get 'stocks', to: 'stocks#index'
    get 'stocks/:ticker',                to: 'stocks#show'
    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.29 config/routes.rb