Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
  • Loading branch information
bnonni committed May 7, 2022
1 parent 53c9643 commit 2ba23e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions backend/api/account/accountService.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const debug = require('../../utils/debug');
const senseiAdmin = require('../../sensei/admin');

const getAccountBalance = async (username) => {
const getAccountAllowance = async (username) => {
try {
// get allowance from firestore
return { success: true, message: charge };
Expand All @@ -11,4 +11,4 @@ const getAccountBalance = async (username) => {
}
};

module.exports = { getAccountBalance };
module.exports = { getAccountAllowance };
12 changes: 6 additions & 6 deletions backend/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const dotenv = require('dotenv');
dotenv.config({ path: `.env.${process.env.NODE_ENV}` });
dotenv.config();

const PORT = process.env.PORT || 4000;
const cors = require('cors');
Expand All @@ -20,12 +20,12 @@ app.use(
);

app.get('/', async (req, res) => {
res.send(`Health check! Server running on port ${PORT}!`);
res.send(`Health check! Server srunning on port ${PORT}!`);
});

const spot = require('./api/spot');
const invoice = require('./api/invoice');
app.use('/api/v1/spot', spot);
app.use('/api/v1/invoice', invoice);
const account = require('./api/account');
const admin = require('./api/admin');
app.use('/api/v1/account', account);
app.use('/api/v1/admin', admin);

module.exports = { app, PORT };
2 changes: 1 addition & 1 deletion backend/sensei/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const updateConfig = async (electrum_url) => {
return await res.json();
};

export {
module.exports = {
initSensei,
listNodes,
createNode,
Expand Down

0 comments on commit 2ba23e5

Please sign in to comment.