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:
@@ -137,7 +137,7 @@ export function NotificationDrawer({
|
||||
|
||||
const markAllAsRead = useCallback(() => {
|
||||
api
|
||||
.get(apiUrl(ApiEndpoints.notifications_readall), {
|
||||
.post(apiUrl(ApiEndpoints.notifications_readall), {
|
||||
params: {
|
||||
read: false
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user