Added login to the application to make authenticated api requests.
This commit is contained in:
13
assets/js/api/user.js
Normal file
13
assets/js/api/user.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import axios from 'axios';
|
||||
|
||||
export default {
|
||||
login: function (email, password) {
|
||||
return axios.post('/login_api', {
|
||||
email: email,
|
||||
password: password
|
||||
});
|
||||
},
|
||||
getUserData: function (userIri) {
|
||||
return axios.get(userIri);
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user