GEL defect and ui changes

This commit is contained in:
2021-10-07 14:47:17 +01:00
parent dbaa797034
commit 59f7d95f88
60 changed files with 515 additions and 261 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ const getSASToken = () => {
};
export default async function ApiProxy(req, res) {
// console.log(req.method);
console.log(req.method);
var updateBody = {
"pinswg_areaofsiteinhectaresdec": 21,
@@ -112,14 +112,14 @@ export default async function ApiProxy(req, res) {
console.log(req.url.split("/api/proxy/")[1]);
return new Promise((resolve, reject) => {
// console.log(config);
console.log(config);
axios(req.method == "GET" ? configNoData : config)
.then((response) => {
res.statusCode = 200;
res.setHeader("Content-Type", "application/json");
res.setHeader("Cache-Control", "max-age=1800000");
res.end(JSON.stringify(response.data));
// console.log("response data", response.data);
console.log("response data", response.data);
resolve();
})
.catch((error) => {