Comment from company: 1.To make code more DRY:
load_and_authorize_resource should be used instead of separate call authorize! method.
2.Serializers should resides in it's corresponding folders:
Api::V1
Instaed of this:
UserSerializer.new(current_user).serializable_hash[:data][:attributes]
Should be:
render json: current_user, status: :ok, serializer: Api::V1::UserSerializer