API methods for retrieving home and mentions timelines
This commit is contained in:
		
					parent
					
						
							
								f099bc6091
							
						
					
				
			
			
				commit
				
					
						fe57f6330f
					
				
			
		
					 5 changed files with 18 additions and 1 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue