carom-server/billard/urls.py
2017-01-06 20:24:36 +01:00

14 lines
409 B
Python

from django.conf.urls import url, include
from rest_framework import routers
from billard import views
router = routers.DefaultRouter()
router.register(r'clients', views.ClientViewSet)
router.register(r'locations', views.LocationViewSet)
router.register(r'tables', views.TableViewSet)
router.register(r'location_data', views.LocationDataViewSet)
urlpatterns = [
url(r'api/v1/', include(router.urls)),
]