diff --git a/src/lib/Apiclient.js b/src/lib/Apiclient.js index 51d71d6..e739e94 100644 --- a/src/lib/Apiclient.js +++ b/src/lib/Apiclient.js @@ -43,4 +43,15 @@ export default class Apiclient { }) ).status; } + + static async login(username, password) { + return ( + await axios.post(`https://kauft.es/api/auth/login`, { + auth: { + username, + password + } + }) + ).data; + } } diff --git a/src/routes/login/__layout.reset.svelte b/src/routes/login/__layout.reset.svelte new file mode 100644 index 0000000..2478b25 --- /dev/null +++ b/src/routes/login/__layout.reset.svelte @@ -0,0 +1,7 @@ + + +