X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/37ef9073a6d8676a5c2cb0f3cf4105c60af77469..213b1af47b5f2c279db50304d318eb972289e3aa:/apps/api/urls.py diff --git a/apps/api/urls.py b/apps/api/urls.py index 773ef8cb..deac319a 100644 --- a/apps/api/urls.py +++ b/apps/api/urls.py @@ -16,9 +16,17 @@ urlpatterns = patterns('', # url(r'^hello$', hello_resource, {'emitter_format': 'json'}), # url(r'^hello\.(?P.+)$', hello_resource), + # HTML Renderer service + url(r'^render$', 'api.views.render'), + # Toolbar - url(r'^toolbar/buttons$', toolbar_buttons, {'emitter_format': 'json'}), - url(r'^toolbar/scriptlets$', scriptlets, {'emitter_format': 'json'}), + url(r'^toolbar/buttons$', toolbar_buttons, {'emitter_format': 'json'}, + name="toolbar_buttons" + ), + + url(r'^toolbar/scriptlets$', scriptlets, {'emitter_format': 'json'}, + name="toolbar_scriptlets" + ), # Pull requests url(r"^pull-requests$", pullrequest_collection, @@ -47,12 +55,12 @@ urlpatterns = patterns('', # XML url(urlpath(r'documents', DOC, 'text', format=False), - document_text_resource, {'emitter_format': 'rawxml'}, + document_text_resource, {'emitter_format': 'raw'}, name="doctext_view"), # HTML url(urlpath(r'documents', DOC, 'html', format=False), - document_html_resource, {'emitter_format': 'rawhtml'}, + document_html_resource, {'emitter_format': 'raw'}, name="dochtml_view"), # DC