jumpserver/apps/users/api_urls.py

18 lines
351 B
Python
Raw Normal View History

2016-08-23 16:11:13 +00:00
# -*- coding: utf-8 -*-
#
from django.conf.urls import url, include
from rest_framework import routers
from .api import UserViewSet
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
urlpatterns = [
url(r'v1/', include(router.urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]