def get(self, id): store = StoreModel.find_by_store_id(id) if store: return store.json() return {'message': 'Store not found'}, 404
def delete(self, id): store = StoreModel.find_by_store_id(id) if store: store.delete() return {'message': 'Store deleted'}