gonito-frontend/src/api/addUser.js

15 lines
409 B
JavaScript

import {API} from '../utils/globals';
import KeyCloakService from '../services/KeyCloakService';
const addUser = () => {
fetch(`${API}/add-user`, {
headers: {'Authorization': `Bearer ${KeyCloakService.getToken()}`}
})
.then(response => response.json())
.then(data => {
console.log('add user');
console.log(data);
});
};
export default addUser;