mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 07:12:12 +11:00
fix ?
This commit is contained in:
parent
0adca45bcf
commit
c7783f508c
1 changed files with 4 additions and 3 deletions
7
index.js
7
index.js
|
|
@ -45,8 +45,8 @@ fastify.register(require("point-of-view"), {
|
|||
root: path.join(__dirname, "views"),
|
||||
});
|
||||
|
||||
const api = process.env.BANKAPIURL;
|
||||
|
||||
const api = `${process.env.BANKAPIURL}`;
|
||||
console.log(api);
|
||||
function papy() {
|
||||
const rndInt = Math.floor(Math.random() * 1337);
|
||||
let random = false;
|
||||
|
|
@ -92,7 +92,8 @@ fastify.get("/", async function (req, res) {
|
|||
if (process.env.SETUP == false || !process.env.SETUP) {
|
||||
res.view("setup");
|
||||
} else {
|
||||
let checkalive = await got(`${api}/../properties`, {
|
||||
console.log(`${api}../properties`);
|
||||
let checkalive = await got(`${api}../properties`, {
|
||||
headers: {
|
||||
Accept: "application/json",
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue