init commit
This commit is contained in:
18
.history/backend/api/urls_20250506131439.py
Normal file
18
.history/backend/api/urls_20250506131439.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# api/urls.py
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from .views import (
|
||||
RegisterView, LoginView, LinkViewSet,
|
||||
LinkGroupViewSet, UserLinksListView
|
||||
)
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register(r'links', LinkViewSet, basename='links')
|
||||
router.register(r'groups', LinkGroupViewSet, basename='groups')
|
||||
|
||||
urlpatterns = [
|
||||
path('auth/register/', RegisterView.as_view(), name='auth-register'),
|
||||
path('auth/login/', LoginView.as_view(), name='auth-login'),
|
||||
path('users/<str:username>/links/', UserLinksListView.as_view(), name='user-links'),
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user