Skip to content

Commit

Permalink
early nanopay
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 2, 2024
1 parent d6df3ab commit 6959c8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions streaming/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,7 @@ const startServer = async () => {
app.post('/api/v1/streaming/node', async (req, res) => {
res.writeHead(200, { 'Content-Type': 'application/json' });
try {
res.write(JSON.stringify( req.body ));
// res.write(JSON.stringify( (await axios.post('https://rpc.nano.to', req.body, { headers: { 'nano-app': 'xno-social' } })).data ));
res.write(JSON.stringify( (await axios.post('https://rpc.nano.to', req.body, { headers: { 'nano-app': 'xno-social' } })).data ));
res.end();
} catch (e) {
res.end( e.message ? e.message : e );
Expand Down

0 comments on commit 6959c8e

Please sign in to comment.