Adding a notification stack for error messages
This commit is contained in:
parent
05b0c985b4
commit
d6a64f45fd
17 changed files with 115 additions and 45 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue