Updated rest data

This commit is contained in:
Alexander Werner
2017-01-03 19:55:01 +01:00
parent ded2d189bb
commit 363fb584f6
4 changed files with 49 additions and 3 deletions

12
billard/urls.py Normal file
View File

@@ -0,0 +1,12 @@
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)
urlpatterns = [
url(r'api/v1/', include(router.urls)),
]