X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/3fb7b9dea69252f64ee82967dfca97baf1b02df7..76f20486580d7998cad2300bc864980075766f79:/notes/urls.py?ds=sidebyside

diff --git a/notes/urls.py b/notes/urls.py
index 503c5b4..9a20053 100644
--- a/notes/urls.py
+++ b/notes/urls.py
@@ -1,9 +1,13 @@
-from django.urls import path
+from django.urls import path, re_path
 from . import views
 
 app_name = 'notes'
 
 urlpatterns=[
-    path('', views.note_list, name="note_list"),
-    path('notes/<slug:note_slug>', views.note_detail, name="note_detail"),
+    path('', views.note_list, name='note_list'),
+    re_path('^notes/?$', views.note_redirect, name='note_redirect'),
+    path('notes/<slug:note_slug>', views.note_detail, name='note_detail'),
+    path('archive/', views.archive_main, name='archive_main'),
+    path('archive/<int:archive_year>/', views.archive_year, name='archive_year'),
+    path('archive/<int:archive_year>/<int:archive_month>/', views.archive_month, name='archive_month'),
 ]
\ No newline at end of file