From a70494be4e1767e0cb7ff4218e7f266ece56089c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 4 Jul 2018 14:42:21 -0400 Subject: Made pokemon embeddable --- config/routes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/routes.rb') 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 get '/', to: 'pokemon#index' post '/', to: 'uploader#submit' - resources :pokemon, only: [:show] + resources :pokemon, only: [:show] do + member do + get 'embed' + end + end resources :pokedex, only: [:index] -- cgit 1.4.1