def booth(*args, **kwargs): user = kwargs['user'].as_dict() if(request.method == 'PUT' or request.method == 'PATCH'): if(user['role_id'] == ROLE['booth']): return BoothController.update(request, user['id']) return 'Unauthorized' elif(request.method == 'POST'): return BoothController.create(request) elif(request.method == 'GET'): return BoothController.index(request)
def get_exhibitors(*args, **kwargs): return BoothController.index(request)