Adding a notification stack for error messages
This commit is contained in:
1 parent
05b0c985b4
commit
d6a64f45fd
17 files changed
+115
-45
No files matched your search
@@ -3,6 +3,10 @@ class Api::FollowsController < ApiController
|
||||
respond_to :json
|
||||
|
||||
def create
|
||||
if params[:uri].blank?
|
||||
raise ActiveRecord::RecordNotFound
|
||||
end
|
||||
|
||||
@follow = FollowService.new.(current_user.account, params[:uri])
|
||||
render action: :show
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user