rstarter-supporthq
Version:
15 lines (11 loc) • 1.01 kB
JavaScript
webpackHotUpdate("bundle",{
/***/ "./src/actions/login.action.js":
/*!*************************************!*\
!*** ./src/actions/login.action.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.login = undefined;\n\nvar _actions = __webpack_require__(/*! ../constents/actions.const */ \"./src/constents/actions.const.js\");\n\nvar login = exports.login = function login(dispatch, username, password) {\n //return {type:LOGIN, payload:{username,password}};\n fetch(\"http://dev.startuplaravel.localhost/api/login\", { method: \"POST\", body: { email: username, password: password } }).then(function (res) {\n return res.json();\n }).then(function (res) {\n return { type: _actions.LOGIN, payload: res };\n });\n};\n\n//# sourceURL=webpack:///./src/actions/login.action.js?");
/***/ })
})