add api_not_found hook

This commit is contained in:
zotlabs 2018-08-21 23:13:54 -07:00
parent 42c4a0da51
commit 0eeaf8713f

View File

@ -129,6 +129,9 @@ require_once('include/api_zot.php');
} }
$x = [ 'path' => App::$query_string ];
call_hooks('api_not_found',$x);
header('HTTP/1.1 404 Not Found'); header('HTTP/1.1 404 Not Found');
logger('API call not implemented: ' . App::$query_string . ' - ' . print_r($_REQUEST,true)); logger('API call not implemented: ' . App::$query_string . ' - ' . print_r($_REQUEST,true));
$r = '<status><error>not implemented</error></status>'; $r = '<status><error>not implemented</error></status>';