legacy/pairent_backend/pairent_app/urls.py

11 lines
388 B
Python

from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from . import views
urlpatterns = format_suffix_patterns([
path("apartaments/", views.ApartamentViewSet.as_view({'get': 'list'})),
path("apartament/<int:pk>/", views.ApartamentViewSet.as_view({'get': 'retrieve'})),
path("comparison/", views.ApartamentComparisonAPIView.as_view())
])