* 配置路由`urls`
修改文件`/xinchen/urls.py`
```python
from django.contrib import admin
from django.urls import path, include
from rest_framework import routers
from rest_framework_jwt.views import obtain_jwt_token
from api.views import *
router = routers.DefaultRouter()
router.register('roles', PageRolesViewSet)
router.register('users', UserProfileViewSet)
urlpatterns = [
path('admin/', admin.site.urls),
path('', include(router.urls)),
path('token/', obtain_jwt_token)
]
```