X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/60734259bb91a3ff24ba8a757bb3748648f74366..07b09d489ecbc789a096e53d98070c286c286101:/apps/api/resources.py diff --git a/apps/api/resources.py b/apps/api/resources.py index 113d4b6d..2d097877 100644 --- a/apps/api/resources.py +++ b/apps/api/resources.py @@ -7,9 +7,6 @@ __doc__ = "Module documentation." from piston.resource import Resource from api.utils import DjangoAuth - - - authdata = {'authentication': DjangoAuth()} # @@ -24,6 +21,11 @@ document_html_resource = Resource(dh.DocumentHTMLHandler, **authdata) document_dc_resource = Resource(dh.DocumentDublinCoreHandler, **authdata) document_merge = Resource(dh.MergeHandler, **authdata) +import api.handlers.manage_handlers as mh + +pullrequest_collection = Resource(mh.PullRequestListHandler, **authdata) +pullrequest_rsrc = Resource(mh.PullRequestHandler, **authdata) + # # Toolbar resources # @@ -31,6 +33,8 @@ import api.handlers.toolbar_handlers as th toolbar_buttons = Resource(th.ToolbarHandler, **authdata) scriptlets = Resource(th.ScriptletsHandler, **authdata) + + __all__ = [ 'library_resource', 'document_resource', @@ -38,5 +42,7 @@ __all__ = [ 'document_dc_resource', 'document_merge', 'toolbar_buttons', - 'scriptlets' + 'scriptlets', + 'pullrequest_collection', + 'pullrequest_rsrc', ] \ No newline at end of file