Add /api/notes to get and post notes

This commit is contained in:
2025-12-07 15:11:49 +05:30
parent af343796d1
commit df595e4f19
10 changed files with 583 additions and 2 deletions

9
notes/urls.py Normal file
View 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")),
]