Move the server code inside server dir
This commit is contained in:
15
server/notes/urls.py
Normal file
15
server/notes/urls.py
Normal 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")),
|
||||
]
|
||||
Reference in New Issue
Block a user