2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-17 18:26:32 +00:00

cleaner api url definition

This commit is contained in:
Matthias
2021-11-27 21:41:49 +01:00
parent c4c43135f1
commit 2c9fc11349
2 changed files with 10 additions and 4 deletions

View File

@@ -144,6 +144,7 @@ class NotificationList(generics.ListAPIView):
#'age', # TODO enable ordering by age
'category',
'name',
'read',
]
search_fields = [
@@ -181,8 +182,7 @@ class NotificationDetail(generics.RetrieveDestroyAPIView):
]
common_api_urls = [
settings_api_urls = [
# User settings
url(r'^user/', include([
# User Settings Detail
@@ -200,6 +200,9 @@ common_api_urls = [
# Global Settings List
url(r'^.*$', GlobalSettingsList.as_view(), name='api-global-setting-list'),
])),
]
common_api_urls = [
# Notifications
url(r'^notifications/', include([