diff --git a/karma/urls.py b/karma/urls.py index 408e827..2a5d1db 100644 --- a/karma/urls.py +++ b/karma/urls.py @@ -1,6 +1,6 @@ """URL patterns for the karma views.""" from django.conf.urls import include -from django.urls import path +from django.urls import path, re_path from rest_framework.routers import DefaultRouter from karma.views import KarmaKeyViewSet, index, key_detail @@ -10,7 +10,7 @@ router.register(r'keys', KarmaKeyViewSet) urlpatterns = [ path('', index, name='karma_index'), - path('key//', key_detail, name='karma_key_detail'), + re_path('^key/(?P.+)/', key_detail, name='karma_key_detail'), path('api/', include(router.urls)), ]