This is an API used by the openPost web app to obtain data on the latest number of posts in the database as well as fetching new posts (if new posts have been made)
Here's how it basically works:
Basically:
- the website (OpenPost) will continuously send HTTP requests asking for the index of the latest post (over 2 second interval)
- if the index of the latest post is not the same as the current index stored by the website, then it means a new post must've been added
- in that case, the website will send an HTTP request to fetch the newest three posts.