0
0
Fork 0

Add /api/v1/notifications/clear, non-existing link cards for statuses will

now return empty hash instead of throwing a 404 error. When following,
merge into timeline will filter statuses
This commit is contained in:
Eugen Rochko 2017-01-23 21:09:27 +01:00
parent f2e08ff568
commit f392030ab8
5 changed files with 21 additions and 11 deletions

View file

@ -103,10 +103,11 @@ Rails.application.routes.draw do
get '/timelines/public', to: 'timelines#public', as: :public_timeline
get '/timelines/tag/:id', to: 'timelines#tag', as: :hashtag_timeline
resources :follows, only: [:create]
resources :media, only: [:create]
resources :apps, only: [:create]
resources :blocks, only: [:index]
resources :follows, only: [:create]
resources :media, only: [:create]
resources :apps, only: [:create]
resources :blocks, only: [:index]
resources :favourites, only: [:index]
resources :follow_requests, only: [:index] do
member do
@ -115,8 +116,11 @@ Rails.application.routes.draw do
end
end
resources :notifications, only: [:index, :show]
resources :favourites, only: [:index]
resources :notifications, only: [:index, :show] do
collection do
post :clear
end
end
resources :accounts, only: [:show] do
collection do