fix incorrect converters

This commit is contained in:
slice 2018-07-21 09:35:50 -07:00
parent cb70842280
commit 681e35db5a
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
1 changed files with 6 additions and 8 deletions

View File

@ -23,7 +23,7 @@ async def get_single_webhook(webhook_id):
pass pass
@bp.route('/webhooks/<int:webhook_id>/<str:webhook_token>', methods=['GET']) @bp.route('/webhooks/<int:webhook_id>/<webhook_token>', methods=['GET'])
async def get_tokened_webhook(webhook_id, webhook_token): async def get_tokened_webhook(webhook_id, webhook_token):
pass pass
@ -33,7 +33,7 @@ async def modify_webhook(webhook_id):
pass pass
@bp.route('/webhooks/<int:webhook_id>/<str:webhook_token>', methods=['PATCH']) @bp.route('/webhooks/<int:webhook_id>/<webhook_token>', methods=['PATCH'])
async def modify_webhook_tokened(webhook_id, webhook_token): async def modify_webhook_tokened(webhook_id, webhook_token):
pass pass
@ -43,24 +43,22 @@ async def del_webhook(webhook_id):
pass pass
@bp.route('/webhooks/<int:webhook_id>/<str:webhook_token>', methods=['DELETE']) @bp.route('/webhooks/<int:webhook_id>/<webhook_token>', methods=['DELETE'])
async def del_webhook_tokened(webhook_id, webhook_token): async def del_webhook_tokened(webhook_id, webhook_token):
pass pass
@bp.route('/webhooks/<int:webhook_id>/<str:webhook_token>', methods=['POST']) @bp.route('/webhooks/<int:webhook_id>/<webhook_token>', methods=['POST'])
async def execute_webhook(webhook_id, webhook_token): async def execute_webhook(webhook_id, webhook_token):
pass pass
@bp.route('/webhooks/<int:webhook_id>/<str:webhook_token>/slack', @bp.route('/webhooks/<int:webhook_id>/<webhook_token>/slack',
methods=['POST']) methods=['POST'])
async def execute_slack_webhook(webhook_id, webhook_token): async def execute_slack_webhook(webhook_id, webhook_token):
pass pass
@bp.route('/webhooks/<int:webhook_id>/<str:webhook_token>/github', @bp.route('/webhooks/<int:webhook_id>/<webhook_token>/github', methods=['POST'])
methods=['POST'])
async def execute_github_webhook(webhook_id, webhook_token): async def execute_github_webhook(webhook_id, webhook_token):
pass pass