aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/notes_urls.py
blob: 55fb32b4b8749979029bcc222b159460380fd56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.urls import path

from .views import (
    NoteDetailView,
    NoteCreateView,
    NoteListView,
    NoteTagView,
)

app_name = "notes"

urlpatterns = [
    path(r'create/', NoteCreateView.as_view(), name='create',),
    path(r't/<slug>', NoteTagView.as_view(), name='tags',),
    path(r'<slug>/<pk>', NoteDetailView.as_view(), name='detail',),
    path(r'', NoteListView.as_view(), name='list',),
]