a few small fixes

This commit is contained in:
Me
2023-01-16 13:44:49 +01:00
parent b9e93bda17
commit ae34fd1cb6
2 changed files with 7 additions and 1 deletions

View File

@@ -21,6 +21,12 @@
console.log({...user})
})
export const updateUser = async() => {
user = await fetch(`http://${process.env.WEBSITE_HOST}:${process.env.WEBSITE_PORT}/api/v2/user?username=${params.username}`)
.then( (x) => x.json() );
};
$: params.username, updateUser();
</script>