fix the loading of the karma UI

This commit is contained in:
Brian S. Stephan 2023-03-07 15:03:41 -06:00 committed by Brian Stephan
parent d962b275ff
commit b7976c46d1
1 changed files with 2 additions and 2 deletions

View File

@ -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/<karma_key>/', key_detail, name='karma_key_detail'),
re_path('^key/(?P<karma_key>.+)/', key_detail, name='karma_key_detail'),
path('api/', include(router.urls)),
]