about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-07-04 14:42:21 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-07-04 14:42:21 -0400
commita70494be4e1767e0cb7ff4218e7f266ece56089c (patch)
tree9e9c93272e8ed4d55091ba4a61f2787e1229a958 /config
parent006cf8cebfb4e2d2dcfc537b6d3ccaaa14e28cfc (diff)
downloadpokeviewer-a70494be4e1767e0cb7ff4218e7f266ece56089c.tar.gz
pokeviewer-a70494be4e1767e0cb7ff4218e7f266ece56089c.tar.bz2
pokeviewer-a70494be4e1767e0cb7ff4218e7f266ece56089c.zip
Made pokemon embeddable
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2d59eea..fc93b1c 100644 --- a/config/routes.rb +++ b/config/routes.rb
@@ -2,7 +2,11 @@ Pokeviewer::Engine.routes.draw do
2 get '/', to: 'pokemon#index' 2 get '/', to: 'pokemon#index'
3 post '/', to: 'uploader#submit' 3 post '/', to: 'uploader#submit'
4 4
5 resources :pokemon, only: [:show] 5 resources :pokemon, only: [:show] do
6 member do
7 get 'embed'
8 end
9 end
6 10
7 resources :pokedex, only: [:index] 11 resources :pokedex, only: [:index]
8 12