from django.conf.urls import url
from django.urls import path, include
from rest_framework import routers
from .views import *

router = routers.DefaultRouter()

router.register(r'^info', AccommodationInfoViewSet, basename='info')
router.register(r'^retrieve', AccommodationInfoRetrieveViewSet,
                basename='retrieve')
router.register(r'^images',
                AccommodationImageViewSet, basename='images')
router.register(r'^wisheslist',
                WishesListViewSet, basename='wisheslist')
router.register(r'^review', AccommodationReviewViewSet,
                basename="review")

urlpatterns = [
    url(r"^recommendation", RecommendationViewSet.as_view()),
    url(r'^upload/', AccommodationPublishViewSet.as_view(
        {"put": "upload"})),
    url(r'^update/', AccommodationUpdateViewSet.as_view(
        {"put": "update"})),
    url(r'^cancel/', AccommodationCancelViewSet.as_view()),
    url(r'^booking/', BookingHandleViewSet.as_view()),
    url(r'^delete/', AccommodationDeleteViewSet.as_view()),
    url(r'^not_available/', GetUnavailableDateViewSet.as_view()),
    url(r"^post_review", PostReviewViewSet.as_view()),
    *router.urls,
]

f632ee83b72929d91b5d16f2f8e269faba994fb4
<mask token>

<mask token>
router.register('^info', AccommodationInfoViewSet, basename='info')
router.register('^retrieve', AccommodationInfoRetrieveViewSet, basename=
    'retrieve')
router.register('^images', AccommodationImageViewSet, basename='images')
router.register('^wisheslist', WishesListViewSet, basename='wisheslist')
router.register('^review', AccommodationReviewViewSet, basename='review')
<mask token>

<mask token>
router = routers.DefaultRouter()
router.register('^info', AccommodationInfoViewSet, basename='info')
router.register('^retrieve', AccommodationInfoRetrieveViewSet, basename=
    'retrieve')
router.register('^images', AccommodationImageViewSet, basename='images')
router.register('^wisheslist', WishesListViewSet, basename='wisheslist')
router.register('^review', AccommodationReviewViewSet, basename='review')
urlpatterns = [url('^recommendation', RecommendationViewSet.as_view()), url
    ('^upload/', AccommodationPublishViewSet.as_view({'put': 'upload'})),
    url('^update/', AccommodationUpdateViewSet.as_view({'put': 'update'})),
    url('^cancel/', AccommodationCancelViewSet.as_view()), url('^booking/',
    BookingHandleViewSet.as_view()), url('^delete/',
    AccommodationDeleteViewSet.as_view()), url('^not_available/',
    GetUnavailableDateViewSet.as_view()), url('^post_review',
    PostReviewViewSet.as_view()), *router.urls]

from django.conf.urls import url
from django.urls import path, include
from rest_framework import routers
from .views import *
router = routers.DefaultRouter()
router.register('^info', AccommodationInfoViewSet, basename='info')
router.register('^retrieve', AccommodationInfoRetrieveViewSet, basename=
    'retrieve')
router.register('^images', AccommodationImageViewSet, basename='images')
router.register('^wisheslist', WishesListViewSet, basename='wisheslist')
router.register('^review', AccommodationReviewViewSet, basename='review')
urlpatterns = [url('^recommendation', RecommendationViewSet.as_view()), url
    ('^upload/', AccommodationPublishViewSet.as_view({'put': 'upload'})),
    url('^update/', AccommodationUpdateViewSet.as_view({'put': 'update'})),
    url('^cancel/', AccommodationCancelViewSet.as_view()), url('^booking/',
    BookingHandleViewSet.as_view()), url('^delete/',
    AccommodationDeleteViewSet.as_view()), url('^not_available/',
    GetUnavailableDateViewSet.as_view()), url('^post_review',
    PostReviewViewSet.as_view()), *router.urls]

from django.conf.urls import url
from django.urls import path, include
from rest_framework import routers
from .views import *

router = routers.DefaultRouter()

router.register(r'^info', AccommodationInfoViewSet, basename='info')
router.register(r'^retrieve', AccommodationInfoRetrieveViewSet,
                basename='retrieve')
router.register(r'^images',
                AccommodationImageViewSet, basename='images')
router.register(r'^wisheslist',
                WishesListViewSet, basename='wisheslist')
router.register(r'^review', AccommodationReviewViewSet,
                basename="review")

urlpatterns = [
    url(r"^recommendation", RecommendationViewSet.as_view()),
    url(r'^upload/', AccommodationPublishViewSet.as_view(
        {"put": "upload"})),
    url(r'^update/', AccommodationUpdateViewSet.as_view(
        {"put": "update"})),
    url(r'^cancel/', AccommodationCancelViewSet.as_view()),
    url(r'^booking/', BookingHandleViewSet.as_view()),
    url(r'^delete/', AccommodationDeleteViewSet.as_view()),
    url(r'^not_available/', GetUnavailableDateViewSet.as_view()),
    url(r"^post_review", PostReviewViewSet.as_view()),
    *router.urls,
]
