Commit b573941d authored by Jason D Yeomans's avatar Jason D Yeomans
Browse files

update urls

parent 6c00400e
......@@ -43,3 +43,4 @@ coverage.xml
docs/_build/
# PyBuilder
target/
roomlist/
......@@ -4,7 +4,7 @@ from api import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^building/(?P<building>.+)/(?P<room_number>\d+)', views.room, name='room'),
url(r'^building/(?P<building>[a-zA-Z]+)', views.building, name='building'),
url(r'^buildings/', views.buildings_list, name='buildings_list'),
url(r'^building/(?P<building>.+)/(?P<room_number>\d+)$', views.room, name='room'),
url(r'^building/(?P<building>[a-zA-Z]+)$', views.building, name='building'),
url(r'^buildings/$', views.buildings_list, name='buildings_list'),
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment