Ejemplo n.º 1
0
def get_index():
    since_id = request.args.get("since")
    until_id = request.args.get("until")
    return IndexHandler.get(since_id=since_id, until_id=until_id, as_json=request_wants_json())
Ejemplo n.º 2
0
def get_post(post_id):
    return PostHandler.get(post_id, as_json=request_wants_json())
Ejemplo n.º 3
0
def error_handler(error):
    return ErrorHandler.get(error, as_json=request_wants_json())