Adapt some API route syntax
This commit is contained in:
parent
b00df8c2e7
commit
f23e947d0c
1 changed files with 6 additions and 6 deletions
|
|
@ -222,14 +222,14 @@ Rails.application.routes.draw do
|
||||||
get "podmin", to: "home#podmin"
|
get "podmin", to: "home#podmin"
|
||||||
|
|
||||||
api_version(module: "Api::V0", path: {value: "api/v0"}, default: true) do
|
api_version(module: "Api::V0", path: {value: "api/v0"}, default: true) 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)
|
||||||
resources :likes, only: %i[create destroy]
|
resources :likes, only: %i(create destroy)
|
||||||
end
|
end
|
||||||
resources :conversations, only: %i[show index create destroy] do
|
resources :conversations, only: %i(show index create destroy) do
|
||||||
delete "visibility" => "conversation_visibilities#destroy"
|
delete "visibility" => "conversation_visibilities#destroy"
|
||||||
resources :messages, only: %i[index create]
|
resources :messages, only: %i(index create)
|
||||||
end
|
end
|
||||||
get "activity" => "streams#activity", :as => "activity_stream"
|
get "activity" => "streams#activity", :as => "activity_stream"
|
||||||
get "stream" => "streams#multi", :as => "stream"
|
get "stream" => "streams#multi", :as => "stream"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue