fix the loading of the karma UI
This commit is contained in:
parent
d962b275ff
commit
b7976c46d1
@ -1,6 +1,6 @@
|
|||||||
"""URL patterns for the karma views."""
|
"""URL patterns for the karma views."""
|
||||||
from django.conf.urls import include
|
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 rest_framework.routers import DefaultRouter
|
||||||
|
|
||||||
from karma.views import KarmaKeyViewSet, index, key_detail
|
from karma.views import KarmaKeyViewSet, index, key_detail
|
||||||
@ -10,7 +10,7 @@ router.register(r'keys', KarmaKeyViewSet)
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', index, name='karma_index'),
|
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)),
|
path('api/', include(router.urls)),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user