Registered path for nearest establishments
This commit is contained in:
parent
5943839eda
commit
bdc2c327f6
|
|
@ -5,7 +5,6 @@ from establishment import views
|
|||
|
||||
app_name = 'establishment'
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.EstablishmentListView.as_view(), name='list'),
|
||||
path('<int:pk>/', views.EstablishmentRetrieveView.as_view(), name='detail'),
|
||||
|
|
@ -15,5 +14,5 @@ urlpatterns = [
|
|||
path('<int:pk>/comments/<int:comment_id>/', views.EstablishmentCommentRUDView.as_view(),
|
||||
name='rud-comment'),
|
||||
path('<int:pk>/favorites/', views.EstablishmentFavoritesCreateDestroyView.as_view(),
|
||||
name='add-favorites'),
|
||||
]
|
||||
name='add-favorites')
|
||||
]
|
||||
|
|
|
|||
11
apps/establishment/urls/mobile.py
Normal file
11
apps/establishment/urls/mobile.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""Establishment url patterns."""
|
||||
from django.urls import path
|
||||
|
||||
from establishment import views
|
||||
from establishment.urls.common import urlpatterns as common_urlpatterns
|
||||
|
||||
urlpatterns = [
|
||||
path('geo/', views.EstablishmentNearestRetrieveView.as_view(), name='nearest-establishments-list')
|
||||
]
|
||||
|
||||
urlpatterns.extend(common_urlpatterns)
|
||||
|
|
@ -3,10 +3,11 @@ from django.urls import path, include
|
|||
app_name = 'mobile'
|
||||
|
||||
urlpatterns = [
|
||||
path('establishments/', include('establishment.urls.mobile')),
|
||||
# path('account/', include('account.urls.web')),
|
||||
# path('advertisement/', include('advertisement.urls.web')),
|
||||
# path('collection/', include('collection.urls.web')),
|
||||
# path('establishments/', include('establishment.urls.web')),
|
||||
# path('news/', include('news.urls.web')),
|
||||
# path('partner/', include('partner.urls.web')),
|
||||
]
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user