about summary refs log tree commit diff
path: root/app/controllers/api/follows_controller.rb
blob: 9ec4f46b8f8f6093ee2da92b43e312ba60ab4efc (plain) (blame)
1
2
3
4
5
6
7
8
9
class Api::FollowsController < ApiController
  before_action :doorkeeper_authorize!
  respond_to    :json

  def create
    @follow = FollowService.new.(current_user.account, params[:uri])
    render action: :show
  end
end