Move the server code inside server dir

This commit is contained in:
2025-12-18 02:17:55 +05:30
parent 2d90a4017f
commit c84866210a
32 changed files with 1 additions and 1 deletions

15
server/notes/urls.py Normal file
View File

@@ -0,0 +1,15 @@
from django.contrib.auth.views import LoginView, LogoutView
from django.urls import include, path
from notes import views, api_views
urlpatterns = [
path("", views.HomePage.as_view(), name="home"),
path("post-a-note/", views.PostNoteView.as_view(), name="post-a-note"),
path("profile/", views.ProfileView.as_view(), name="profile"),
path("login/", LoginView.as_view(), name="login"),
path("logout/", LogoutView.as_view(), name="logout"),
path("api/notes/", api_views.NoteListView.as_view(), name="api-notes-list"),
path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
]