From 2db7925cad9f28c6fad4b08399375567f7565845 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 15 Jul 2017 08:13:22 +0200 Subject: [PATCH] Fix route to avoid remove trailing slash in collection endpoints. --- accountant/views/accounts.py | 2 +- accountant/views/operations.py | 2 +- accountant/views/scheduled_operations.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/accountant/views/accounts.py b/accountant/views/accounts.py index 2bc54b6..3a3d43d 100644 --- a/accountant/views/accounts.py +++ b/accountant/views/accounts.py @@ -122,7 +122,7 @@ range_parser.add_argument( # pylint: disable=no-self-use -@ns.route('/') +@ns.route('') @ns.doc( security='apikey', responses={ diff --git a/accountant/views/operations.py b/accountant/views/operations.py index e7af1e5..54f4400 100644 --- a/accountant/views/operations.py +++ b/accountant/views/operations.py @@ -90,7 +90,7 @@ account_range_parser.add_argument( # pylint: disable=no-self-use -@ns.route('/') +@ns.route('') @ns.doc( security='apikey', responses={ diff --git a/accountant/views/scheduled_operations.py b/accountant/views/scheduled_operations.py index 5f4d07b..dac03fa 100644 --- a/accountant/views/scheduled_operations.py +++ b/accountant/views/scheduled_operations.py @@ -68,7 +68,7 @@ account_id_parser.add_argument( # pylint: disable=no-self-use -@ns.route('/') +@ns.route('') @ns.doc( security='apikey', responses={