Fix stream API routes
Put streams under the subpath `/streams`.
This commit is contained in:
parent
f6b57384e7
commit
646c743385
1 changed files with 8 additions and 8 deletions
|
|
@ -231,14 +231,14 @@ Rails.application.routes.draw do
|
|||
delete "visibility" => "conversation_visibilities#destroy"
|
||||
resources :messages, only: %i[index create]
|
||||
end
|
||||
get "activity" => "streams#activity", :as => "activity_stream"
|
||||
get "stream" => "streams#multi", :as => "stream"
|
||||
get "public" => "streams#public", :as => "public_stream"
|
||||
get "followed_tags" => "streams#followed_tags", :as => "followed_tags_stream"
|
||||
get "mentions" => "streams#mentioned", :as => "mentioned_stream"
|
||||
get "liked" => "streams#liked", :as => "liked_stream"
|
||||
get "commented" => "streams#commented", :as => "commented_stream"
|
||||
get "aspects" => "streams#aspects", :as => "aspects_stream"
|
||||
get "streams/activity" => "streams#activity", :as => "activity_stream"
|
||||
get "streams/stream" => "streams#multi", :as => "stream"
|
||||
get "streams/public" => "streams#public", :as => "public_stream"
|
||||
get "streams/followed_tags" => "streams#followed_tags", :as => "followed_tags_stream"
|
||||
get "streams/mentions" => "streams#mentioned", :as => "mentioned_stream"
|
||||
get "streams/liked" => "streams#liked", :as => "liked_stream"
|
||||
get "streams/commented" => "streams#commented", :as => "commented_stream"
|
||||
get "streams/aspects" => "streams#aspects", :as => "aspects_stream"
|
||||
end
|
||||
|
||||
namespace :api do
|
||||
|
|
|
|||
Loading…
Reference in a new issue