mirror of
https://github.com/bspeice/UNCCGameDay-Server
synced 2024-12-04 13:58:14 -05:00
Add the location view to the URLs
This commit is contained in:
parent
8321385b8a
commit
b5ae16ba93
@ -7,7 +7,8 @@ urlpatterns = patterns('gameday.views',
|
|||||||
url('^$', 'api_root'),
|
url('^$', 'api_root'),
|
||||||
url('^lots/$', views.ParkingLotList.as_view(), name='parking-lots'),
|
url('^lots/$', views.ParkingLotList.as_view(), name='parking-lots'),
|
||||||
url('^lots/(?P<lot>\w+)/$', views.SingleParkingLotList.as_view(), name='parking-lot'),
|
url('^lots/(?P<lot>\w+)/$', views.SingleParkingLotList.as_view(), name='parking-lot'),
|
||||||
url('^rate/$', views.RateLot.as_view(), name='parking-rating'),
|
url('^lots/rate/$', views.RateLot.as_view(), name='parking-rating'),
|
||||||
|
url('^lots/location/(?P<lot>\w+)/$', views.ParkingLotEntrance.as_view(), name='get-location'),
|
||||||
url('^register/(?P<id>\d+)/$', views.ListRegisteredUsers.as_view(), name='get-registered-user'),
|
url('^register/(?P<id>\d+)/$', views.ListRegisteredUsers.as_view(), name='get-registered-user'),
|
||||||
url('^register/(?P<fname>\w+)/(?P<lname>\w+)/$', views.ListRegisteredUserByName.as_view(),
|
url('^register/(?P<fname>\w+)/(?P<lname>\w+)/$', views.ListRegisteredUserByName.as_view(),
|
||||||
name='get-registered-user-by-name'),
|
name='get-registered-user-by-name'),
|
||||||
|
Loading…
Reference in New Issue
Block a user