From 454acf056694d374498be7e9d961b36de62a5ce1 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Thu, 2 Mar 2017 11:40:27 +0900 Subject: Add JSON interface to Recents Posts functionality, e.g. mod_recent_posts --- mod.php | 1 + 1 file changed, 1 insertion(+) (limited to 'mod.php') 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 -- cgit v1.3