0
0
Fork 0

API methods for retrieving home and mentions timelines

This commit is contained in:
Eugen Rochko 2016-03-07 13:25:26 +01:00
parent f099bc6091
commit fe57f6330f
5 changed files with 18 additions and 1 deletions

View file

@ -24,6 +24,11 @@ Rails.application.routes.draw do
# JSON / REST API
resources :statuses, only: [:create, :show] do
collection do
get :home
get :mentions
end
member do
post :reblog
post :favourite