first working version where transactions can be stored

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-04-03 00:52:13 +02:00
parent 087c2ef95e
commit eddd4d9b51
9 changed files with 155 additions and 89 deletions

View File

@@ -1,5 +1,5 @@
<script>
import {api} from '../../urls.svelte'
import {api, post} from '../../urls.svelte'
import { error, yikes } from '../../warn.svelte';
import {t} from '../../translations.svelte';
@@ -14,11 +14,7 @@
async function getCandidates(text){
const url = api('user/search');
const resp = await fetch(url,{
credentials : 'include',
method : 'POST',
body : text
});
const resp = await post(url,text);
if (resp.ok){
yikes();
const input = await resp.json();