add Logout

This commit is contained in:
Jan Naahs
2020-06-13 17:03:14 +02:00
parent 3fb85fccfa
commit 98ce8db942
5 changed files with 51 additions and 17 deletions

View File

@@ -8,5 +8,9 @@ export default {
login: async data => {
const response = await client.post('/api/login', JSON.stringify(data));
return response.data;
},
logout: async () => {
const response = await client.get('/api/logout');
return response.data;
}
}