Resolve health check

This commit is contained in:
Patrick Fic
2023-05-04 13:25:45 -07:00
parent 7dc3c00628
commit abe5fadeea
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ export default async function RenderTemplate(
jsreport.serverUrl = "https://reports3.test.imex.online/";
}
const jsrAuth = (await axios.post("/utils/jsr")).data;
console.log("🚀 ~ file: RenderTemplate.js:30 ~ jsrAuth:", jsrAuth);
jsreport.headers["Authorization"] = jsrAuth;
//Query assets that match the template name. Must be in format <<templateName>>.query

View File

@@ -247,9 +247,9 @@ app.post("/search", fb.validateFirebaseIdToken, os.search);
var cdkGetMake = require("./server/cdk/cdk-get-makes");
app.post("/cdk/getvehicles", fb.validateFirebaseIdToken, cdkGetMake.default);
// app.get("/", async function (req, res) {
// res.status(200).send("Access Forbidden.");
// });
app.get("/", async function (req, res) {
res.status(200).send("Access Forbidden.");
});
server.listen(port, (error) => {
if (error) throw error;