carom-server/billard/urls.py

17 lines
726 B
Python
Raw Permalink Normal View History

2017-01-03 19:55:01 +01:00
from django.conf.urls import url, include
from rest_framework import routers
from billard import views
router = routers.DefaultRouter()
2017-01-06 20:24:36 +01:00
router.register(r'location_data', views.LocationDataViewSet)
2017-01-03 19:55:01 +01:00
urlpatterns = [
2017-02-04 06:20:46 +01:00
url(r'^$', views.index, name='carom_index'),
2017-01-09 20:42:59 +01:00
url(r'^(?P<pk>[0-9]+)/$', views.LocationDataDetailView.as_view(), name='detail'),
2017-01-03 19:55:01 +01:00
url(r'api/v1/', include(router.urls)),
2017-03-06 19:22:01 +01:00
url(r'process_locationdata', views.process_locationdata, name='process_locationdata'),
2017-03-11 20:20:25 +01:00
url(r'accounting', views.accounting, name='accounting'),
2017-03-06 20:05:53 +01:00
url(r'accountmodal$', views.accountmodalview, name='accountmodal'),
url(r'accoutmodal/confirm/(?P<pk>[0-9]+)$', views.accountmodalconfirmview, name="accountmodalconfirm")
2017-01-06 20:24:36 +01:00
]