38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
exports.ids = [1];
|
|
exports.modules = {
|
|
|
|
/***/ 86:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* WEBPACK VAR INJECTION */(function(URL) {const ENDPOINT = 'https://api.contree.io/profile';
|
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
async middleware({
|
|
req,
|
|
res,
|
|
error,
|
|
$axios,
|
|
redirect
|
|
}) {
|
|
const url = new URL(req.url, `https://${req.headers.host}`);
|
|
const uid = url.searchParams.get('LINEUserID') || ''; //const veify_checked = url.searchParams.get('Veify_Checked')
|
|
//console.log(veify_checked)
|
|
|
|
console.log(uid);
|
|
const response = await $axios.get(ENDPOINT, {
|
|
params: {
|
|
LINEUserID: uid
|
|
}
|
|
});
|
|
await res.setHeader('Content-Type', 'application/json; charset=utf-8');
|
|
res.end(JSON.stringify(response.data.slice(-1)));
|
|
}
|
|
|
|
});
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)["URL"]))
|
|
|
|
/***/ })
|
|
|
|
};;
|
|
//# sourceMappingURL=autofill.js.map
|