[damned-lies] [api] Refs #257 - Branch name can contain '/'



commit b5bc5816670644b3e8cdc2d4bbb833ba3771027d
Author: Claude Paroz <claude 2xlibre net>
Date:   Mon Sep 13 16:35:13 2021 +0200

    [api] Refs #257 - Branch name can contain '/'

 api/urls.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/api/urls.py b/api/urls.py
index d71bfafd..e96f2a48 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -12,7 +12,7 @@ urlpatterns = [
     path('modules/', views.ModulesView.as_view(), name='api-modules'),
     path('modules/<name:module_name>', views.ModuleView.as_view(), name='api-module'),
     path(
-        'modules/<name:module_name>/branch/<name:branch_name>',
+        'modules/<name:module_name>/branch/<path:branch_name>',
         views.ModuleBranchView.as_view(),
         name='api-module-branch',
     ),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]