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

[PR #880/f3204531 backport][2.20] Fix API root for the deb/copy/ endpoint for s3 #881

Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGES/879.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the deb/copy/ API path for scenarios that modify the API root.
10 changes: 9 additions & 1 deletion pulp_deb/app/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# This file is modeled after the corresponding file from pulp_rpm.
# If there are problems with the copy API, or domain support should be added, consult pulp_rpm.

from django.conf import settings
from django.urls import path

from .viewsets import CopyViewSet

urlpatterns = [path("pulp/api/v3/deb/copy/", CopyViewSet.as_view({"post": "create"}))]
V3_API_ROOT = settings.V3_API_ROOT_NO_FRONT_SLASH

urlpatterns = [
path(f"{V3_API_ROOT}deb/copy/", CopyViewSet.as_view({"post": "create"})),
]
Loading