diff options
Diffstat (limited to 'app/controllers/api/follows_controller.rb')
-rw-r--r-- | app/controllers/api/follows_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/api/follows_controller.rb b/app/controllers/api/follows_controller.rb new file mode 100644 index 000000000..acf627a07 --- /dev/null +++ b/app/controllers/api/follows_controller.rb @@ -0,0 +1,9 @@ +class Api::FollowsController < ApiController + before_action :authenticate_user! + respond_to :json + + def create + @follow = FollowService.new.(current_user.account, params[:uri]) + render action: :show + end +end |