implemented login

This commit is contained in:
2021-09-18 19:33:31 +02:00
parent 02b43201b1
commit 4112fd795a
2 changed files with 13 additions and 1 deletions

7
src/functions/logout.ts Normal file
View File

@@ -0,0 +1,7 @@
async function logout(): Promise<void> {
await fetch("/api/logout",{
method:"POST"
})
}
export default logout