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 3e1818c commit 4e7922c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ const startServer = async () => {
}
});

app.get('/api/v1/streaming/node', async (req, res) => {
app.post('/api/v1/streaming/node', async (req, res) => {
res.writeHead(200, { 'Content-Type': 'application/json' });
try {
res.write(JSON.stringify( (await axios.post('https://rpc.nano.to', req.body, { headers: { 'nano-app': 'xno-social' } })).data ));
Expand Down

0 comments on commit 4e7922c

Please sign in to comment.