You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
533 B
14 lines
533 B
|
|
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .views import CertificateRequestView, UserCertificatesListView, AdminCertificateViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'admin/certificates', AdminCertificateViewSet, basename='admin-certificates')
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('request/', CertificateRequestView.as_view(), name='certificate-request'),
|
|
path('my-certificates/', UserCertificatesListView.as_view(), name='user-certificates'),
|
|
]
|