Complete primitive backend

This commit is contained in:
Alexander Laevens
2022-11-22 16:16:34 -07:00
commit 35fc396050
29 changed files with 840 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from django.urls import path, include
from rest_framework.authtoken import views as authviews
from rest_framework import routers
from users import views
urlpatterns = [
path('token', authviews.obtain_auth_token, name="api-token-auth"),
path('users', views.RegisterUserView.as_view()), # Exposes POST to everyone for registering
path('users/me', views.ModifyUserView.as_view()) # exposes GET / PUT / PATCH / DELETE for registered users for their user object
]