in employee-ui/src/utils/Server.js [53:64]
export async function createMenuItem(tagLine, itemName, itemPrice, spiceLevel) {
const url = process.env.VUE_APP_MENU_SERVICE_URL + '/menu';
const payload = {tagLine, itemName, itemPrice, spiceLevel};
const response = await fetch(url, {
method: 'POST',
mode: 'cors',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(payload)
});
const respObj = await response.json();
return respObj;
}