Add /api/notes to get and post notes
This commit is contained in:
9
notes/urls.py
Normal file
9
notes/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import include, path
|
||||
|
||||
from notes import api_views
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path("api/notes/", api_views.NoteListView.as_view(), name="api-notes-list"),
|
||||
path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
|
||||
]
|
||||
Reference in New Issue
Block a user