Add JSON interface to Recents Posts functionality, e.g. mod_recent_posts

This commit is contained in:
Benjamin Southall 2017-03-02 11:40:27 +09:00
parent 35c0152f6d
commit e01a6d19f3
2 changed files with 34 additions and 10 deletions

View file

@ -73,6 +73,7 @@ $pages = array(
'/ban-appeals' => 'secure_POST ban_appeals', // view ban appeals
'/recent/(\d+)' => 'recent_posts', // view recent posts
'/recent/(\d+)/(json)?' => 'recent_posts', // view recent posts JSON
'/search' => 'search_redirect', // search
'/search/(posts|IP_notes|bans|log)/(.+)/(\d+)' => 'search', // search