2
0

urls.py 724 B

123456789101112131415
  1. from django.urls import path
  2. from apps.account.views import LoonUserView, LoonRoleView, LoonDeptView, LoonAppTokenView, LoonAppTokenDetailView, \
  3. LoonLoginView, LoonLogoutView, LoonUserRoleView, LoonRoleUserView
  4. urlpatterns = [
  5. path('/users', LoonUserView.as_view()),
  6. path('/users/<int:user_id>/roles', LoonUserRoleView.as_view()),
  7. path('/roles', LoonRoleView.as_view()),
  8. path('/roles/<int:role_id>/users', LoonRoleUserView.as_view()),
  9. path('/depts', LoonDeptView.as_view()),
  10. path('/login', LoonLoginView.as_view()),
  11. path('/logout', LoonLogoutView.as_view()),
  12. path('/app_token', LoonAppTokenView.as_view()),
  13. path('/app_token/<int:app_token_id>', LoonAppTokenDetailView.as_view()),
  14. ]