add
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
exports.ids = [1];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 87:
|
||||
/***/ (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 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__(50)["URL"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=Check_Veify.js.map
|
||||
Reference in New Issue
Block a user