first commit
This commit is contained in:
25
authentication/urls.py
Normal file
25
authentication/urls.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from authentication import views as auth_views
|
||||
|
||||
router = DefaultRouter()
|
||||
|
||||
router.register(
|
||||
r'province',
|
||||
auth_views.ProvinceViewSet,
|
||||
basename="province"
|
||||
)
|
||||
router.register(
|
||||
r'city',
|
||||
auth_views.CityViewSet,
|
||||
basename="city"
|
||||
)
|
||||
|
||||
router.register(
|
||||
r'profile',
|
||||
auth_views.UserProfileViewSet,
|
||||
basename="profile"
|
||||
)
|
||||
urlpatterns = [
|
||||
path('', include(router.urls))
|
||||
]
|
||||
Reference in New Issue
Block a user