Remove default paramter for api routes

This commit is contained in:
Frank Rousseau 2018-01-05 03:55:05 +01:00
parent ffd5f575bc
commit bf2a188f82

View file

@ -221,7 +221,7 @@ Rails.application.routes.draw do
root :to => 'home#show' root :to => 'home#show'
get "podmin", to: "home#podmin" get "podmin", to: "home#podmin"
api_version(module: "Api::V1", path: {value: "api/v1"}, default: true) do api_version(module: "Api::V1", path: {value: "api/v1"}) do
match "user", to: "users#show", via: %i[get post] match "user", to: "users#show", via: %i[get post]
resources :posts, only: %i[show create destroy] do resources :posts, only: %i[show create destroy] do
resources :comments, only: %i[create destroy] resources :comments, only: %i[create destroy]