Added login to the application to make authenticated api requests.
This commit is contained in:
1 parent
4536195a4c
commit
00bb86f798
13 files changed
+230
-9
No files matched your search
@@ -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