14 lines
		
	
	
		
			485 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			485 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.conf.urls import url, include
 | 
						|
from rest_framework import routers
 | 
						|
from billard import views
 | 
						|
 | 
						|
router = routers.DefaultRouter()
 | 
						|
router.register(r'location_data', views.LocationDataViewSet)
 | 
						|
 | 
						|
urlpatterns = [
 | 
						|
    url(r'^$', views.index, name='carom_index'),
 | 
						|
    url(r'^(?P<pk>[0-9]+)/$', views.LocationDataDetailView.as_view(), name='detail'),
 | 
						|
    url(r'api/v1/', include(router.urls)),
 | 
						|
    url(r'process_locationdata', views.process_locationdata, name='process_locationdata')
 | 
						|
]
 |