@sebastián-cisneros In static:api.routes, you'll want to call controllerHelpers.setupAPIRoute to mount the route to the appropriate /api/v3/plugins mount point.
You can see an example of how we do it in the quickstart plugin
I use
/api/topic/${tid}/${postIndex}
to get data of topic.
BUT the result of posts are limit in 20.
How can I get all topic of post with api.
BTW I know the way that
/api/user/${userslug}/topics?page=x
to get all topics of category ,
but it's not work in
/api/topic/${tid}/${postIndex}
someone help me plz
@baris thx for ur reply
but i used
/api/topic/782?page=1
and
/api/topic/782?page=2
this is page 2
there is same pid in the posts array
What is your nodebb version & git hash? How many pages does that topic have? Make sure you have the fix from here https://github.com/NodeBB/NodeBB/issues/9473 or upgrade to latest.
@baris
thx a lot !!!!
it's work finally!