add api_not_found hook
This commit is contained in:
parent
42c4a0da51
commit
0eeaf8713f
@ -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');
|
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));
|
||||||
|
Reference in New Issue
Block a user