Finish API ?
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace RomhackPlazaFS\Endpoints;
|
||||
use RomhackPlazaFS\Library\Data;
|
||||
use RomhackPlazaFS\Library\Log;
|
||||
use RomhackPlazaFS\RomhackPlazaFS;
|
||||
|
||||
defined( 'ROMHACKPLAZA_FS' ) || exit;
|
||||
@@ -12,12 +13,12 @@ class Editorfilelist extends Abstract_Endpoint {
|
||||
private string $custom_post_type;
|
||||
protected function private_endpoint(): bool
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function require_token(): bool
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function get_post_params(): void {
|
||||
@@ -54,6 +55,8 @@ class Editorfilelist extends Abstract_Endpoint {
|
||||
$response['private'] = $private->list_files( $this->custom_post_type, $this->post_id );
|
||||
$response['archived'] = $archived->list_files( $this->custom_post_type, $this->post_id );
|
||||
|
||||
new Log( __class__, "WP Id=" . $this->token_info['user_id'], $this->post_id, $this->custom_post_type );
|
||||
|
||||
RomhackPlazaFS::success_response( $response );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user