diff --git a/apps/booking/urls/__init__.py b/apps/booking/urls/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/apps/booking/urls.py b/apps/booking/urls/common.py similarity index 100% rename from apps/booking/urls.py rename to apps/booking/urls/common.py diff --git a/apps/booking/urls/mobile.py b/apps/booking/urls/mobile.py new file mode 100644 index 00000000..57e58c8f --- /dev/null +++ b/apps/booking/urls/mobile.py @@ -0,0 +1,8 @@ +from booking.urls import common as common_views +app = 'booking' + + +urlpatterns_api = [] + +urlpatterns = urlpatterns_api + \ + common_views.urlpatterns diff --git a/apps/booking/urls/web.py b/apps/booking/urls/web.py new file mode 100644 index 00000000..57e58c8f --- /dev/null +++ b/apps/booking/urls/web.py @@ -0,0 +1,8 @@ +from booking.urls import common as common_views +app = 'booking' + + +urlpatterns_api = [] + +urlpatterns = urlpatterns_api + \ + common_views.urlpatterns diff --git a/project/urls/mobile.py b/project/urls/mobile.py index 4fa53ad9..4368189e 100644 --- a/project/urls/mobile.py +++ b/project/urls/mobile.py @@ -3,6 +3,7 @@ from django.urls import path, include app_name = 'mobile' urlpatterns = [ + path('booking/', include('booking.urls.web')), path('establishments/', include('establishment.urls.mobile')), path('location/', include('location.urls.mobile')), path('main/', include('main.urls.mobile')), diff --git a/project/urls/web.py b/project/urls/web.py index c5a609e2..99c12937 100644 --- a/project/urls/web.py +++ b/project/urls/web.py @@ -19,7 +19,7 @@ app_name = 'web' urlpatterns = [ path('account/', include('account.urls.web')), - path('booking/', include('booking.urls')), + path('booking/', include('booking.urls.web')), path('re_blocks/', include('advertisement.urls.web')), path('collections/', include('collection.urls.web')), path('establishments/', include('establishment.urls.web')),