No redirect when Devise API is accessed via JSON