wagtail-longclaw/longclaw/longclaworders/urls.py

26 wiersze
486 B
Python
Czysty Zwykły widok Historia

2017-02-10 09:06:35 +00:00
from django.conf.urls import url
from django.conf import settings
2017-02-17 09:03:21 +00:00
from longclaw.longclaworders import api
2017-02-10 09:06:35 +00:00
2017-03-09 08:33:44 +00:00
from longclaw.settings import API_URL_PREFIX
2017-02-10 09:06:35 +00:00
# Bookings
orders = api.OrderViewSet.as_view({
'get': 'retrieve',
})
urlpatterns = (
### VIEWS ###
url(
r'^order/(?P<pk>[0-9]+)/$',
orders,
name='orders'
),
url(
2017-03-09 08:33:44 +00:00
API_URL_PREFIX + r'^order/(?P<pk>[0-9]+)/fulfill/$',
2017-02-10 09:06:35 +00:00
api.fulfill_order,
name='fulfill_order'
)
)