Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -35,9 +35,9 @@ module Api
- def render_response(response)
- if response.success?
- - render json: { status: true, data: response.data }, status: :ok
- + render JsonResponse.success(data: response.data)
- else
- - render json: { status: false, errors: response.errors }, status: :bad_request
- + render JsonResponse.error(message: response.errors)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement