def set_user
        @user = ::Fbuser::V1::User.find_by_id(params[:id])
        if @user.nil?
          render :json => {errors: "User was not found"}, status: :not_found
        end
      end
def set_user
        @user = ::Fbuser::V1::User.find_by_id(params[:id])
        if @user.nil?
          render :json => {errors: "User was not found"}, status: :not_found
        end
      end
Use callbacks to share common setup or constraints between actions.