Fakultas Ilmu Komputer UI

urls.py 400 Bytes
Newer Older
Glenda Emanuella Sutanto's avatar
Glenda Emanuella Sutanto committed
1
2
3
4
5
6
7
8
9
10
11
12
13
from rest_framework import routers
from django.urls import path, include
from .views import LinkUserAndDietProfileViewSet

router = routers.SimpleRouter()
router.register('auth/link-user-and-diet-profile', LinkUserAndDietProfileViewSet, \
    basename="LinkUserAndDietProfile")

urlpatterns = [
    path('auth/registration/', include('dj_rest_auth.registration.urls')),
]

urlpatterns += router.urls