Topic viewcount always increasing for every read call
-
Here
I am calling this api (topic details api)http://localhost:4567/api/topic/{topic_id}/{topic_slug}
from my proxy and it will always increases the viewcount.Example:
app.get('/check', (req,res)=> { const options = { url: 'http://localhost:4567/api/topic/11/testCount', method: 'GET', json: true }; request(options, (error, response, body) => { res.send(body) }) })
this is my CUrl
curl --location --request GET 'http://localhost:3002/check' \ --header 'Authorization: Bearer 5e8db636-89ec-41ea-9cf9-8309297f8ac4'
How can I get the correct viewcount.?
can anyone help on this?
Copyright © 2024 NodeBB | Contributors