about summary refs log tree commit diff stats
path: root/config/routes.rb
blob: 0151fff2d6cc372dfc3002e39f74bb367f59a345 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Pokeviewer::Engine.routes.draw do
  get '/', to: 'pokemon#index'
  post '/', to: 'uploader#submit'

  resources :pokemon, only: [:show] do
    member do
      get 'embed'
      get 'revisions/:revision_id', action: :show_revision, as: :show_revision
    end
  end

  resources :pokedex, only: [:index]

end