This commit is contained in:
tonitch committed 2024-04-17 21:41:29 +02:00
1 parent 94be706226
commit 8fa29460ef
10 files changed
+90 -11

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { ref } from 'vue'
import { restGet, restPost } from '@/rest/restConsumer.js'
export const notifications = ref({});
export function fetchNotifications(){
restGet("/notifications").then( e => notifications.value = e );
}
export function archiveNotification(id){
restPost("/notifications/" + id).then( e => fetchNotifications() );
}