Made API return 404 when no user was found

This commit is contained in:
Absurdon 2017-09-30 01:06:19 +02:00
parent db129bc95a
commit 6b5cafcbf0

View file

@ -14,7 +14,7 @@ class Api::V1::UsersController < Api::V1::BaseController
end
if @user.nil?
render json: nil
render json: nil, status: :not_found
return
end