In the api call it goes in the second parameter like so
api[method](`/posts/${pid}/vote`, { delta: 1, }).then(() => console.log('voted'););Get list topic sorted by votes
-
I write new API in new plugins. And now I want to display all api I got in widget but i don't know how to do it. Please help me. Thanks you
-
@we00054643 Are you looking to create a new widget to display topics sorted by votes?
This is already available in either "Top Topics" or "Popular Topics" widget.
-
@julian Yup I know. But I want to code new to understand how to do it