aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/notes_urls.py
blob: f2573ce8c99186fbeb323e8308d5f80c44947f19 (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'<slug>/<pk>', NoteDetailView.as_view(), name='detail',),
    path(r't/<slug>', NoteTagView.as_view(), name='tags',),
    path(r'', NoteListView.as_view(), name='list',),
]