spug/spug_api/apps/account/urls.py

17 lines
490 B
Python

# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
# Copyright: (c) <spug.dev@gmail.com>
# Released under the AGPL-3.0 License.
from django.urls import path
from apps.account.views import *
from apps.account.history import *
urlpatterns = [
path('login/', login),
path('logout/', logout),
path('user/', UserView.as_view()),
path('role/', RoleView.as_view()),
path('self/', SelfView.as_view()),
path('login/history/', HistoryView.as_view())
]