1
0
forked from PGL/Clyde
This commit is contained in:
2024-04-17 21:41:29 +02:00
parent 94be706226
commit 8fa29460ef
10 changed files with 90 additions and 11 deletions

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() );
}