Add the location view to the URLs

This commit is contained in:
DjBushido 2013-10-28 12:03:03 -04:00
parent 8321385b8a
commit b5ae16ba93

View File

@ -7,7 +7,8 @@ urlpatterns = patterns('gameday.views',
url('^$', 'api_root'),
url('^lots/$', views.ParkingLotList.as_view(), name='parking-lots'),
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<fname>\w+)/(?P<lname>\w+)/$', views.ListRegisteredUserByName.as_view(),
name='get-registered-user-by-name'),