2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-25 12:33:33 +00:00

!refactor(backend): remove API quirks (#11723)

* move action to post endpoint

* use default return code

* remove custom permissions on notifications endpoint

* add api bump

* update link

* fix assertation

* fix test to use post - this was refactored
This commit is contained in:
Matthias Mair
2026-04-13 02:31:08 +02:00
committed by GitHub
parent fc06aa354a
commit 27ce60dea3
6 changed files with 14 additions and 22 deletions
@@ -137,7 +137,7 @@ export function NotificationDrawer({
const markAllAsRead = useCallback(() => {
api
.get(apiUrl(ApiEndpoints.notifications_readall), {
.post(apiUrl(ApiEndpoints.notifications_readall), {
params: {
read: false
}
+1 -1
View File
@@ -26,7 +26,7 @@ export default function NotificationsPage() {
const markAllAsRead = useCallback(() => {
api
.get(apiUrl(ApiEndpoints.notifications_readall), {
.post(apiUrl(ApiEndpoints.notifications_readall), {
params: {
read: false
}