Skip to content

Commit

Permalink
"solution 3"
Browse files Browse the repository at this point in the history
  • Loading branch information
Olha Stadnik committed Dec 9, 2024
1 parent ae167c5 commit 5c8337b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cinema/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
CinemaHallViewSet,
)

cinema_hall_list = CinemaHallViewSet.as_view(actions={"get": "list", "post": "create"})
cinema_hall_list = CinemaHallViewSet.as_view(actions={"get": "list",
"post": "create"})
cinema_hall_detail = CinemaHallViewSet.as_view(
actions={
"get": "retrieve",
Expand All @@ -29,7 +30,8 @@
path("actors/", ActorList.as_view(), name="actor-list"),
path("actors/<int:pk>/", ActorDetail.as_view(), name="actor-detail"),
path("cinema_halls/", cinema_hall_list, name="cinema_hall-list"),
path("cinema_halls/<int:pk>/", cinema_hall_detail, name="cinema_hall-detail"),
path("cinema_halls/<int:pk>/", cinema_hall_detail,
name="cinema_hall-detail"),
]

app_name = "cinema"

0 comments on commit 5c8337b

Please sign in to comment.