def get(self, token): user = User.get_by_token(token) if not user: raise APINotFound('token') return 'token is found'