Move API controllers from v0 to v1

This commit is contained in:
Frank Rousseau 2017-11-10 00:37:40 +01:00
parent b4dc13f1ce
commit ec18844e8f
8 changed files with 1 additions and 1 deletions

View file

@ -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]