mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-18 23:52:14 +11:00
test2
This commit is contained in:
parent
c0c9db613c
commit
764c213fe6
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
|
@ -102,7 +102,6 @@ app.post('/setup', async function(req, res){
|
||||||
res.redirect('/')
|
res.redirect('/')
|
||||||
})
|
})
|
||||||
app.get('/', async function(req, res){
|
app.get('/', async function(req, res){
|
||||||
console.log(thingy)
|
|
||||||
if(setup==false){
|
if(setup==false){
|
||||||
res.render('setup')
|
res.render('setup')
|
||||||
}else{
|
}else{
|
||||||
|
|
@ -144,7 +143,7 @@ app.get('/BankF', ensureAuthenticated, async function(req, res){
|
||||||
let balance = 0
|
let balance = 0
|
||||||
try{
|
try{
|
||||||
balance = await got(process.env.BANKAPIURL+'BankF/'+req.session.user+'/bal')
|
balance = await got(process.env.BANKAPIURL+'BankF/'+req.session.user+'/bal')
|
||||||
console.log(balance)
|
console.log(balance.timings)
|
||||||
balance = JSON.parse(balance.body)
|
balance = JSON.parse(balance.body)
|
||||||
} catch(err){
|
} catch(err){
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue