from django.urls import path, re_path
from . import views

app_name = 'course_app'

urlpatterns = [
    path('', views.index, name='index'),
    path('<slug:slug>/', views.details, name='details'),
    re_path('^(?P<slug>[-a-zA-Z0-9_]+)/activity/(?P<activity_uuid>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/(?P<url>.*)$', views.activity, name='activity'),  # noqa
]
