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