def delete_repo(name): cmd.del_git_repo(name) return Response(ret.gen_ret_ok(), mimetype='application/json')
def create_repo(): req = request.get_json() cmd.add_git_repo(req['name']) return Response(ret.gen_ret_ok(message='git clone %s' % cmd.get_git_clone_path()), mimetype='application/json')