summaryrefslogtreecommitdiff
path: root/app/notes/urls.py
blob: 760f0c34ad346e39a3f03d0d9e0b56d2d19087f6 (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
from django.urls import path, re_path

from . import views

app_name = "notes"

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