knifemastershop.shop
Open in
urlscan Pro
188.114.96.3
Public Scan
URL:
https://knifemastershop.shop/static/site/js/index.js
Submission: On October 26 via api from US — Scanned from NL
Submission: On October 26 via api from US — Scanned from NL
Form analysis
0 forms found in the DOMText Content
// import axios from "axios"; // let BaseHttpUrl='https://wgoudjewelry.shop' let BaseHttpUrl='' /** * @param:{string} method * @param:{string} url * @param:{string} params * @param:{string} variation **/ function loginRequest (method, url, params, variation = "F") { if (variation == "F") { return axios({ method: method, url: `/${url}`, headers: { "Content-Type": "application/json", Authorization: "Basic cGlnOnBpZw==", appId: "tY4ncojD", secret: "75ef285398140605d487b646d6524ccea4f2b5ef", }, data: params, }).then((res) => res.data); } else { return axios({ method: method, url: url, headers: { "Content-Type": "application/json", // Authorization: "Basic cGlnOnBpZw==", }, params: params, }).then((res) => res.data); } }; /** * @param:{string} method * @param:{string} url * @param:{string} params * @param:{string} variation **/ function request (method, url, params, variation = "F", isFile = false) { if (variation == "F") { let requestdata = { method: method, url: `${BaseHttpUrl}/${url}`, headers: { "Content-Type": "application/json", 'Authorization': `${JSON.parse(localStorage.getItem('token'))}`, }, params: params, }; if (method === "get") { console.log({ ...requestdata, ...{ params: params, }, }); if (!isFile) { return axios({ ...requestdata, ...{ params: params, }, }).then((res) => res.data); } else { return axios({ ...requestdata, responseType: "blob", ...{ params: params, }, }).then((res) => res); } } else { delete requestdata.params; console.log({ ...requestdata, ...{ data: params, }, }); return axios({ ...requestdata, ...{ data: params, }, }).then((res) => res.data); } } else { return axios({ method: method, url: url, headers: { "Content-Type": "application/json", 'Authorization': `${JSON.parse(localStorage.getItem('token'))}`, appId: "tY4ncojD", secret: "75ef285398140605d487b646d6524ccea4f2b5ef", }, params: params, }).then((res) => res.data); } }; function upload (url, data) { return axios({ method: "post", url: `${process.env.VUE_APP_BASE_FTP}${url}`, headers: { "Content-Type": "multipart/form-data", // 'Authorization': `Bearer${JSON.parse(sessionStorage.getItem('token'))}`, appId: "tY4ncojD", secret: "75ef285398140605d487b646d6524ccea4f2b5ef", }, data: data, }).then((res) => res.data); };