Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reactivate strict slashes #789

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/app/api/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_api_dataroot_resources(bp_dataroot, url_dataroot=None):

def add_resource(resource, url):
"""convenience function to make the outer function less verbose"""
api.add_resource(resource, url, resource_class_args=(url_dataroot,), strict_slashes=False)
api.add_resource(resource, url, resource_class_args=(url_dataroot,))

# Initialization routes
add_resource(S3URIAPI, "/s3_uri")
Expand All @@ -202,7 +202,7 @@ def get_api_s3uri_resources(bp_dataroot, s3uri_path):

def add_resource(resource, url):
"""convenience function to make the outer function less verbose"""
api.add_resource(resource, url, resource_class_args=(s3uri_path,), strict_slashes=False)
api.add_resource(resource, url, resource_class_args=(s3uri_path,))

# Initialization routes
add_resource(SchemaAPI, "/schema")
Expand Down
Loading