23 lines
561 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())
])),
path('schools/', include([
path('<int:pk>/', SchoolAPIView.as_view()),
path('', SchoolListAPIView.as_view())
])),
]