summaryrefslogtreecommitdiff
path: root/app/notes/urls.py
blob: 5571f46e75425258f756fc2c754eb42110f8e694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from django.urls import path, re_path

from . import views

app_name = "notes"

urlpatterns = [
    path(
        r'',
        views.NoteListView.as_view(),
        {'status':None}, 
        name="list"
    ),
    path(
        r'create',
        views.NoteCreateView.as_view(),
        name="create"
    ),
    path(
        r'<str:status>',
        views.NoteListView.as_view(),
        name="status"
    ),
    path(
        r'<pk>/edit',
        views.NoteUpdateView.as_view(),
        name="edit"
    ),
]