renator's picture
Setup Accounts and add Authentication on this
52a3fd6
raw
history blame
256 Bytes
from django.urls import path
from . import views
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = [
path('register/', views.RegisterView.as_view(), name='register'),
path('login', obtain_auth_token, name="Get Token"),
]