aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-08-21 23:13:54 -0700
committerzotlabs <mike@macgirvin.com>2018-08-21 23:13:54 -0700
commit0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e (patch)
treec541161a4317c0a7b38ab1b50e240634851661f8 /include/api.php
parent42c4a0da51c61497427721a7467d1d6c8a09a605 (diff)
downloadvolse-hubzilla-0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e.tar.gz
volse-hubzilla-0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e.tar.bz2
volse-hubzilla-0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e.zip
add api_not_found hook
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php5
1 files changed, 4 insertions, 1 deletions
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));