From 0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 21 Aug 2018 23:13:54 -0700 Subject: add api_not_found hook --- include/api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/api.php') diff --git a/include/api.php b/include/api.php index 6a05a40a5..ed5c0d29f 100644 --- a/include/api.php +++ b/include/api.php @@ -127,7 +127,10 @@ require_once('include/api_zot.php'); } } - + + + $x = [ 'path' => App::$query_string ]; + call_hooks('api_not_found',$x); header('HTTP/1.1 404 Not Found'); logger('API call not implemented: ' . App::$query_string . ' - ' . print_r($_REQUEST,true)); -- cgit v1.2.3