Remove default paramter for api routes
This commit is contained in:
parent
ffd5f575bc
commit
bf2a188f82
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue