Esempio 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())
Esempio n. 2
0
def get_post(post_id):
    return PostHandler.get(post_id, as_json=request_wants_json())
Esempio n. 3
0
def error_handler(error):
    return ErrorHandler.get(error, as_json=request_wants_json())