Skip to content

Commit

Permalink
improv: add root route
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienGiboire committed Oct 14, 2021
1 parent 77bdab1 commit c7862f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Rails.application.routes.draw do
mount Sidekiq::Web => "/sidekiq"

root 'api/pokemons#index'

get '/api/pokemons', to: 'api/pokemons#index'
get '/api/pokemons/:id', to: 'api/pokemons#show', as: :api_pokemon_show
end

0 comments on commit c7862f8

Please sign in to comment.