implementd adding and removal of tags to/from transactions
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user