from flask import request, url_for from app.models import User def user_endpoint_arguments_constructor(): return {'user_id': request.view_args['user_id']}