UNPKG

@puppedo/atoms-mock-server

Version:
67 lines (62 loc) 2.03 kB
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 877: /***/ ((module) => { module.exports = async function atomRun() { const axios = require('axios'); const port = this.options.port || process.env.PPD_MOCK_SERVER_PORT || '9009'; const { routes, response } = this.data; const append = this.data.append !== null ? this.data.append : false; await axios.post(`http://localhost:${port}/ppd-mock-server-routes`, { data: { routes, response, append } }); await this.log({ text: `Update Routes on Mock Server on port: ${port}`, level: 'info' }); }; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__(877); /******/ module.exports = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=mockServerSetRoutes.js.map