diff options
author | zotlabs <mike@macgirvin.com> | 2018-08-21 23:13:54 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-08-21 23:13:54 -0700 |
commit | 0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e (patch) | |
tree | c541161a4317c0a7b38ab1b50e240634851661f8 | |
parent | 42c4a0da51c61497427721a7467d1d6c8a09a605 (diff) | |
download | volse-hubzilla-0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e.tar.gz volse-hubzilla-0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e.tar.bz2 volse-hubzilla-0eeaf8713fd56d0d8582f5bf6f478e2e46a9bf1e.zip |
add api_not_found hook
-rw-r--r-- | include/api.php | 5 |
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)); |