Skip to content

Commit

Permalink
Merge pull request #264 from TokenScript/nicktaras-patch-1
Browse files Browse the repository at this point in the history
Update app.js
  • Loading branch information
nicktaras authored Sep 19, 2023
2 parents de2d054 + 66cb8af commit a4170a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions socios-oauth2/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ app.get("/user-balance", cors(corsOptions), async (request, response) => {
const output = await tokenNegotiatorServer.socios.getFungibleTokenBalance(
request.cookies["tn-oauth2-access-token-socios"]
);
console.log('get user balance', output.toString());
response.json(output);
});

app.get("/user-nfts", cors(corsOptions), async (request, response) => {
const output = await tokenNegotiatorServer.socios.getNonFungibleTokens(
request.cookies["tn-oauth2-access-token-socios"]
);
console.log('get user nfts', output.toString());
response.json(output);
});

Expand Down

0 comments on commit a4170a1

Please sign in to comment.