<gh_stars>10-100
from django.urls import re_path as url
from django.views.decorators.csrf import ensure_csrf_cookie

from rest_framework.routers import SimpleRouter

from api.users import views


router = SimpleRouter()
router.register(r'users?', views.ShareUserViewSet, basename='user')
urlpatterns = router.urls + [
    url(r'userinfo/?', ensure_csrf_cookie(views.ShareUserView.as_view()), name='userinfo'),
]

from django.urls import re_path as url
from django.views.decorators.csrf import ensure_csrf_cookie

from rest_framework.routers import SimpleRouter

from api.users import views


router = SimpleRouter()
router.register(r'users?', views.ShareUserViewSet, basename='user')
urlpatterns = router.urls + [
    url(r'userinfo/?', ensure_csrf_cookie(views.ShareUserView.as_view()), name='userinfo'),
]