mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
started loginAPI mixin
This commit is contained in:
parent
ff1dbeadaa
commit
e8c9ea0994
19
frontend/src/mixins/loginAPI.js
Normal file
19
frontend/src/mixins/loginAPI.js
Normal file
@ -0,0 +1,19 @@
|
||||
// TODO move this
|
||||
const LOGIN_API_URL = 'http://localhost/login_api/'
|
||||
|
||||
// define a mixin object
|
||||
const loginAPI = {
|
||||
mutations: {
|
||||
login: async () => {
|
||||
return axios.post(LOGIN_API_URL + 'unsecureLogin', data);
|
||||
},
|
||||
creatUser : async () => {
|
||||
return axios.post(LOGIN_API_URL + 'createUser', data);
|
||||
},
|
||||
logout: async () => {
|
||||
return axios.post(LOGIN_API_URL + 'logout', data);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default loginAPI
|
||||
Loading…
x
Reference in New Issue
Block a user