2023-05-01 12:39:34 +02:00
|
|
|
from django.urls import path
|
2023-05-03 11:56:13 +02:00
|
|
|
from rest_framework.urlpatterns import format_suffix_patterns
|
2023-05-01 12:39:34 +02:00
|
|
|
|
2023-05-03 11:56:13 +02:00
|
|
|
from . import views
|
2023-05-01 12:39:34 +02:00
|
|
|
|
2023-05-03 11:56:13 +02:00
|
|
|
urlpatterns = format_suffix_patterns([
|
|
|
|
path("apartaments/", views.ApartamentViewSet.as_view({'get': 'list'})),
|
|
|
|
path("apartament/<int:pk>/", views.ApartamentViewSet.as_view({'get': 'retrieve'})),
|
2023-05-07 12:42:06 +02:00
|
|
|
path("comparison/", views.ApartamentComparisonViewSet.as_view({'get': 'retrieve'})),
|
2023-05-03 11:56:13 +02:00
|
|
|
])
|