Sha256: 8b7d1f32ac2cb2c43b21706ef8f7087e91999de1619824e0fb887dcbf1cf7288

Contents?: true

Size: 987 Bytes

Versions: 13

Compression:

Stored size: 987 Bytes

Contents

Ishapi::Engine.routes.draw do

  root :to => 'api#home'

  get 'cities',                :to => 'cities#index'
  get 'cities/view/:cityname', :to => 'cities#show'

  get 'galleries',                   :to => 'galleries#index'
  get 'galleries/view/:galleryname', :to => 'galleries#show'

  namespace :my do
    post 'reports', :to => 'reports#index'
    get  'reports', :to => 'reports#index'

    # resources :reports
    # resources :galleries
    # resources :videos
  end

  get 'reports', :to => 'reports#index'
  get 'reports/view/:name_seo', :to => 'reports#show'

  get 'sites/view/:domain', :to => 'sites#show', :constraints => { :domain => /[^\/]+/ }

  post 'users/fb_sign_in',     :to => 'users#fb_sign_in'
  post 'users/profile',        :to => 'users#show'
  post 'users/profile/update', :to => 'users#update'
  get  'users/profile',        :to => 'users#show' # @TODO: only for testing! accessToken must be hidden

  get 'venues/view/:venuename', :to => 'venues#show'

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ishapi-0.1.8.30 config/routes.rb
ishapi-0.1.8.29 config/routes.rb
ishapi-0.1.8.28 config/routes.rb
ishapi-0.1.8.27 config/routes.rb
ishapi-0.1.8.26 config/routes.rb
ishapi-0.1.8.25 config/routes.rb
ishapi-0.1.8.24 config/routes.rb
ishapi-0.1.8.23 config/routes.rb
ishapi-0.1.8.22 config/routes.rb
ishapi-0.1.8.21 config/routes.rb
ishapi-0.1.8.20 config/routes.rb
ishapi-0.1.8.19 config/routes.rb
ishapi-0.1.8.18 config/routes.rb