18 lines
422 B
Python
18 lines
422 B
Python
from django.contrib import admin
|
|
from django.urls import path, include
|
|
|
|
from .views import *
|
|
|
|
urlpatterns = [
|
|
path('auth/', include([
|
|
path('me/', AboutMeView.as_view()),
|
|
path('login/', LoginView.as_view()),
|
|
path('register/', RegisterView.as_view()),
|
|
])),
|
|
|
|
path('users/', include([
|
|
path('<int:pk>/', UserAPIView.as_view()),
|
|
path('', UserListAPIView.as_view())
|
|
])),
|
|
]
|