You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
327 B
14 lines
327 B
8 years ago
|
class Api::V1::FollowsController < ApiController
|
||
9 years ago
|
before_action :doorkeeper_authorize!
|
||
9 years ago
|
respond_to :json
|
||
|
|
||
|
def create
|
||
8 years ago
|
if params[:uri].blank?
|
||
|
raise ActiveRecord::RecordNotFound
|
||
|
end
|
||
|
|
||
8 years ago
|
@account = FollowService.new.(current_user.account, params[:uri]).try(:target_account)
|
||
9 years ago
|
render action: :show
|
||
|
end
|
||
|
end
|