-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #882 from pulp/patchback/backports/2.21/f3204531b1…
…dc8adb0506369c0571f69866d431cf/pr-880 [PR #880/f3204531 backport][2.21] Fix API root for the deb/copy/ endpoint for s3
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"})), | ||
] |