def post_map(args): src_node = os.path.basename(os.path.dirname(request.path)).capitalize() dst_node = os.path.basename(request.path).capitalize() return Handler.post_map(args, src_node, dst_node)
def get_summary(args): node_type = basename(request.path).capitalize() return Handler.get_summary(args, node_type)
def get_nodes(args): parent = basename(dirname(request.path)).capitalize() child = basename(request.path).capitalize() return Handler.get_nodes(child, parent, args)
def post_rank(args): node = os.path.basename(request.path).capitalize() return Handler.post_rank(args, node)
def get_community(args): node = basename(request.path).capitalize() if "id" in args: return Handler.get_node(args, node) else: return Handler.get_nodes(node, None, args)
def post_user(args): return Handler.post_user(args)
def post_login(args): return Handler.post_login(args)
def api_index(): return Handler.index()
def post_issue(): errors, data = Args.parse_post_issue(request.form) if errors: return jsonify(success=False, errors=errors) return Handler.post_issue(data)
def get_node(args): node = basename(request.path).capitalize() return Handler.get_node(args, node)