diff mbox series

[2/5] Add url to get all project patches in one mbox

Message ID 20190628114314.10462-3-metepolat2000@gmail.com
State Superseded
Headers show
Series Update REST API: Add 'project patches as mbox' field | expand

Commit Message

Mete Polat June 28, 2019, 11:43 a.m. UTC
New url: project/<project_id>/list/mbox/

Signed-off-by: Mete Polat <metepolat2000@gmail.com>
'patch-list-mbox' is not named 'project-mbox' in order to prevent confusion.
While a project also consists of cover letters, those are not intended to be

 patchwork/urls.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/patchwork/urls.py b/patchwork/urls.py
index 935e25f..9e9f7f3 100644
--- a/patchwork/urls.py
+++ b/patchwork/urls.py
@@ -32,6 +32,8 @@  urlpatterns = [
     url(r'^$', project_views.project_list, name='project-list'),
     url(r'^project/(?P<project_id>[^/]+)/list/$', patch_views.patch_list,
+    url(r'^project/(?P<project_id>[^/]+)/list/mbox/$',
+        patch_views.patch_list_mbox, name='patch-list-mbox'),
     url(r'^project/(?P<project_id>[^/]+)/bundles/$', bundle_views.bundle_list,
     url(r'^project/(?P<project_id>[^/]+)/$', project_views.project_detail,