def userDetail(id): if request.method == 'GET': return UserController.show(id) elif request.method == 'PUT': return UserController.update(id) elif request.method == 'DELETE': return UserController.delete(id)
def userDetail(id): return UserController.show(id)