summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-03-02 11:40:27 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-03-02 11:40:27 +0900
commit454acf056694d374498be7e9d961b36de62a5ce1 (patch)
treeacfd8ec58964015a97d29b5e0fa82a87e0488f02 /mod.php
parent6c06045c0329a9a2c0462b0db1df5ec72dc41493 (diff)
Add JSON interface to Recents Posts functionality, e.g. mod_recent_posts
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index b282b8ca..a6424d5d 100644
--- a/mod.php
+++ b/mod.php
@@ -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