Fix: allways require source site for post api endpoint path to not colide
This commit is contained in:
parent
49ab55765a
commit
7984ca1b77
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ from api.posts.views import (
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("<str:post_id>/", PostDetailView.as_view(), name="post_detail"),
|
path(
|
||||||
|
"<str:source_site>/<str:post_id>/", PostDetailView.as_view(), name="post_detail"
|
||||||
|
),
|
||||||
path(
|
path(
|
||||||
"<str:source_site>/<str:creator_slug_or_id>/<str:post_id>/",
|
"<str:source_site>/<str:creator_slug_or_id>/<str:post_id>/",
|
||||||
PostDetailSiteCreatorView.as_view(),
|
PostDetailSiteCreatorView.as_view(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue