{"ast":null,"code":"import axios from \"axios\";\n\n// \n\nexport const GET_USERS = \"GET_USERS\";\nexport const getUsers = () => {\n  return dispatch => {\n    return axios.get(\"http://localhost:5001/api/user/\").then(res => {\n      dispatch({\n        type: GET_USERS,\n        payload: res.data\n      });\n    }).catch(err => console.log(err));\n  };\n};","map":{"version":3,"names":["axios","GET_USERS","getUsers","dispatch","get","then","res","type","payload","data","catch","err","console","log"],"sources":["C:/Users/user/Desktop/05mediaSocial/client/src/actions/users.actions.js"],"sourcesContent":["import axios from \"axios\";\r\n\r\n// \r\n\r\nexport const GET_USERS=\"GET_USERS\";\r\n\r\nexport const getUsers=()=>{\r\n    return (dispatch)=>{\r\n        return axios\r\n          .get(\"http://localhost:5001/api/user/\")\r\n          .then((res)=>{\r\n            dispatch({type:GET_USERS,payload:res.data});\r\n          })\r\n          .catch((err)=>console.log(err))\r\n    }\r\n}"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;;AAEA,OAAO,MAAMC,SAAS,GAAC,WAAW;AAElC,OAAO,MAAMC,QAAQ,GAAC,MAAI;EACtB,OAAQC,QAAQ,IAAG;IACf,OAAOH,KAAK,CACTI,GAAG,CAAC,iCAAiC,CAAC,CACtCC,IAAI,CAAEC,GAAG,IAAG;MACXH,QAAQ,CAAC;QAACI,IAAI,EAACN,SAAS;QAACO,OAAO,EAACF,GAAG,CAACG;MAAI,CAAC,CAAC;IAC7C,CAAC,CAAC,CACDC,KAAK,CAAEC,GAAG,IAAGC,OAAO,CAACC,GAAG,CAACF,GAAG,CAAC,CAAC;EACrC,CAAC;AACL,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}