Frontend/src/util/RequestService.js
// This is for use with our Java API
This is for use with our Java API
This is for use with our Java API
function generateApiInstance() {
  const instance = axios.create({
    baseURL: backendUrl,
    headers: {
      Authorization: RequestService.requestState.token,
    },
  });
  return instance;
}
function generateApiInstance ( ) { const instance = axios . create ( { baseURL : backendUrl , headers : { Authorization : RequestService . requestState . token , } , } ) ; return instance ; }
This is for use with our Java API
This is for use with our Java API