Example #1
0
 def get(self):
     if ArtistModel.is_data_present() is None:
         return {'message': 'No Data Available.'}
     current_user = get_jwt_identity()
     if not current_user:
         return ArtistModel.return_two_records()
     try:
         return ArtistModel.return_all()
     except:
         return {
                    'message': 'Something went Wrong'
                }, 500
Example #2
0
 def get(self):
     return ArtistModel.return_all(), 200