From 4b85ceae580747f1aac65f4fd671d1955a0eb16f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 19 May 2020 13:44:14 +0100 Subject: [PATCH] Implement support for the team API. --- anope_api/views/api/v0/auth.py | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/anope_api/views/api/v0/auth.py b/anope_api/views/api/v0/auth.py index e190229..7009e8e 100644 --- a/anope_api/views/api/v0/auth.py +++ b/anope_api/views/api/v0/auth.py @@ -228,6 +228,50 @@ def user_tags_list(): return do_request('/user/tags/list') +@auth_bp.route('/team/create', methods=['POST']) +def team_create(): + return do_request('/team/create') + + +@auth_bp.route('/team/delete', methods=['POST']) +def team_delete(): + return do_request('/team/delete') + + +@auth_bp.route('/team/list', methods=['POST']) +def team_list(): + return do_request('/team/list') + + +@auth_bp.route('/team/manager/add', methods=['POST']) +def team_manager_add(): + return do_request('/team/manager/add') + + +@auth_bp.route('/team/manager/delete', methods=['POST']) +def team_manager_delete(): + return do_request('/team/manager/delete') + + +@auth_bp.route('/team/manager/list', methods=['POST']) +def team_manager_list(): + return do_request('/team/manager/list') + + +@auth_bp.route('/team/member/add', methods=['POST']) +def team_member_add(): + return do_request('/team/member/add') + + +@auth_bp.route('/team/member/delete', methods=['POST']) +def team_member_delete(): + return do_request('/team/member/delete') + + +@auth_bp.route('/team/member/list', methods=['POST']) +def team_member_list(): + return do_request('/team/member/list') + @auth_bp.app_errorhandler(HTTPException) @auth_bp.errorhandler(HTTPException) def error_handler(error):