<filename>node_modules/.cache/babel-loader/00ccb9f3e0f96538aa75b0cbe7eabe4a.json
{"ast":null,"code":"import { GET_ORDER_PENDING, GET_ORDERS, ADD_ORDER } from \"../_config/const\";\nimport axios from \"axios\";\nexport const addOrder = order => {\n  return {\n    type: ADD_ORDER,\n    payload: axios({\n      method: \"POST\",\n      url: \"http://localhost:5000/api/v1/order/\",\n      data: order\n    })\n  };\n};\nexport const getOrderPending = id => {\n  return {\n    type: GET_ORDER_PENDING,\n    payload: axios.get(\"http://localhost:5000/api/v1/order/\" + id)\n  };\n};","map":{"version":3,"sources":["C:/Users/haibu/Documents/nodejs/tugas-akhir/src/_actions/order.js"],"names":["GET_ORDER_PENDING","GET_ORDERS","ADD_ORDER","axios","addOrder","order","type","payload","method","url","data","getOrderPending","id","get"],"mappings":"AAAA,SAASA,iBAAT,EAA4BC,UAA5B,EAAwCC,SAAxC,QAAyD,kBAAzD;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAGA,OAAO,MAAMC,QAAQ,GAAGC,KAAK,IAAI;AAC/B,SAAO;AACLC,IAAAA,IAAI,EAAEJ,SADD;AAELK,IAAAA,OAAO,EAAEJ,KAAK,CAAC;AACbK,MAAAA,MAAM,EAAE,MADK;AAEbC,MAAAA,GAAG,EAAE,qCAFQ;AAGbC,MAAAA,IAAI,EAAEL;AAHO,KAAD;AAFT,GAAP;AAQD,CATM;AAWP,OAAO,MAAMM,eAAe,GAAIC,EAAD,IAAQ;AACrC,SAAO;AACLN,IAAAA,IAAI,EAAEN,iBADD;AAELO,IAAAA,OAAO,EAAEJ,KAAK,CAACU,GAAN,CAAU,wCAAwCD,EAAlD;AAFJ,GAAP;AAID,CALM","sourcesContent":["import { GET_ORDER_PENDING, GET_ORDERS, ADD_ORDER } from \"../_config/const\";\r\nimport axios from \"axios\";\r\n\r\n\r\nexport const addOrder = order => {\r\n  return {\r\n    type: ADD_ORDER,\r\n    payload: axios({\r\n      method: \"POST\",\r\n      url: \"http://localhost:5000/api/v1/order/\",\r\n      data: order\r\n    })\r\n  };\r\n};\r\n\r\nexport const getOrderPending = (id) => {\r\n  return {\r\n    type: GET_ORDER_PENDING,\r\n    payload: axios.get(\"http://localhost:5000/api/v1/order/\" + id)\r\n  };\r\n};\r\n\r\n"]},"metadata":{},"sourceType":"module"}