start ui with login
This commit is contained in:
15
src/config/noscomptes.js
Normal file
15
src/config/noscomptes.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
export const logWithGoogle = (oauthToken) => {
|
||||
const headers = {
|
||||
"Authorization": "Bearer "+oauthToken
|
||||
};
|
||||
return Vue.axios.post("http://localhost:8081/users", "{}",{headers})
|
||||
}
|
||||
|
||||
export const getUserInformation = (oauthToken) => {
|
||||
const headers = {
|
||||
"Authorization": "Bearer "+oauthToken
|
||||
};
|
||||
return Vue.axios.get("http://localhost:8081/configuration", {headers})
|
||||
}
|
||||
Reference in New Issue
Block a user