Added basic login call logic

This commit is contained in:
2021-08-18 16:50:46 +02:00
parent 5263d1974a
commit 0aab082b17
3 changed files with 35 additions and 2 deletions

View File

@@ -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;
}
}