diff options
author | Stephen Finucane <stephen@that.guru> | 2017-04-27 00:58:04 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-04-28 23:52:04 +0100 |
commit | 868f63b0e366f442cfa158db6ecea8e1027491f1 (patch) | |
tree | a0b5353c9aac16228680540d28965c05750e620c /patchwork/urls.py | |
parent | 5094cfdbf0b11af44f979b16e43e8cce36378322 (diff) | |
download | patchwork-868f63b0e366f442cfa158db6ecea8e1027491f1.tar patchwork-868f63b0e366f442cfa158db6ecea8e1027491f1.tar.gz |
REST: Allow users to omit version entirely
This is super handy for debugging/development of Patchwork and Patchwork
clients alike.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r-- | patchwork/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/urls.py b/patchwork/urls.py index 8c8c172..f700f38 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -232,7 +232,7 @@ if settings.ENABLE_REST_API: ] urlpatterns += [ - url(r'^api/(?P<version>(1.0))/', include(api_patterns)), + url(r'^api/(?:(?P<version>(1.0))/)?', include(api_patterns)), ] |