X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/71b07fe1928b04a218e062f01cca720863b9eeb9..352b8591bd1c7163835a6fa1db34d3e2861c1071:/apps/api/urls.py?ds=inline diff --git a/apps/api/urls.py b/apps/api/urls.py index 913acb7c..de09605d 100644 --- a/apps/api/urls.py +++ b/apps/api/urls.py @@ -2,24 +2,21 @@ __author__="lreqc" __date__ ="$2009-09-17 16:16:54$" from django.conf.urls.defaults import * -from piston.resource import Resource -from api.handlers import * -from api.utils import TextEmitter, DjangoAuth - -authdata = {'authentication': DjangoAuth()} +from api.resources import * FORMAT_EXT = r"\.(?Pxml|json|yaml)$" -library_resource = Resource(LibraryHandler, **authdata) -document_resource = Resource(DocumentHandler, **authdata) -document_text_resource = Resource(DocumentTextHandler, **authdata) -document_dc_resource = Resource(DocumentDublinCoreHandler, **authdata) - urlpatterns = patterns('', # url(r'^hello$', hello_resource, {'emitter_format': 'json'}), # url(r'^hello\.(?P.+)$', hello_resource), + # Toolbar + url(r'^toolbar/buttons$', toolbar_buttons, {'emitter_format': 'json'}), + + # Toolbar + url(r'^toolbar/scriptlets$', scriptlets, {'emitter_format': 'json'}), + # Documents url(r'^documents$', library_resource, {'emitter_format': 'json'}, name="document_list_view"),