implementd adding and removal of tags to/from transactions

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-04-14 21:44:13 +02:00
parent 9d9e2ed50b
commit f6b854a227
6 changed files with 134 additions and 14 deletions
+8 -6
View File
@@ -8,11 +8,13 @@ export function get(url){
return fetch(url,{ credentials:'include' });
}
export function drop(url){
return fetch(url,{
credentials:'include',
method:'DELETE'
});
export function drop(url, payload){
let data = {
credentials:'include',
method:'DELETE'
};
if (payload) data['body'] = JSON.stringify(payload);
return fetch(url,data);
}
export function eventStream(createHandler,updateHandler,deleteHandler){
@@ -54,4 +56,4 @@ export function target(code){
}
return altered;
}
}