added back missing files

This commit is contained in:
2021-07-19 21:49:14 +01:00
parent 016c960720
commit de84da00c2
16 changed files with 610 additions and 192 deletions
+4 -3
View File
@@ -5,7 +5,7 @@ import https from "https";
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
let BASE_URL;
BASE_URL = process.env.API_ROOT || "http://localhost";
BASE_URL = process.env.API_ROOT || "http://localhost:3000";
const agent = new https.Agent({
rejectUnauthorized: false,
@@ -182,11 +182,12 @@ export const getAppealTypeDetail = (caseReference, appealcasetype) => {
//https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/pinswg_planningappeals78s?$filter=pinswg_name eq 'CAS-00015-L7J9H1'
export const getLPA = () => {
console.log("got to axios", searchString);
console.log("api_root: ", BASE_URL);
return axios
.get(
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/accounts?$select=name",
BASE_URL + "/api/lookups/pinswg_lpa",
//.get("https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/accounts?$select=name",
{ httpsAgent: new https.Agent({ rejectUnauthorized: false }) }
)
.then((res) => res.data)