Fix: allways require source site for post api endpoint path to not colide

This commit is contained in:
Aroy-Art 2025-04-09 22:10:56 +02:00
parent 49ab55765a
commit 7984ca1b77
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -9,7 +9,9 @@ from api.posts.views import (
)
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(
"<str:source_site>/<str:creator_slug_or_id>/<str:post_id>/",
PostDetailSiteCreatorView.as_view(),