Move API controllers from v0 to v1
This commit is contained in:
parent
b4dc13f1ce
commit
ec18844e8f
8 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ Rails.application.routes.draw do
|
|||
root :to => 'home#show'
|
||||
get "podmin", to: "home#podmin"
|
||||
|
||||
api_version(module: "Api::V0", path: {value: "api/v0"}, default: true) do
|
||||
api_version(module: "Api::V1", path: {value: "api/v1"}, default: true) do
|
||||
match "user", to: "users#show", via: %i[get post]
|
||||
resources :posts, only: %i[show create destroy] do
|
||||
resources :comments, only: %i[create destroy]
|
||||
|
|
|
|||
Loading…
Reference in a new issue