Finish API ?

This commit is contained in:
2026-01-30 11:03:44 +01:00
parent b49424b6ee
commit 2c3923f03b
15 changed files with 318 additions and 17 deletions

View File

@@ -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 );
}