first commit

This commit is contained in:
2025-02-24 22:33:42 +01:00
commit 737c037e85
18358 changed files with 5392983 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace FileBird\Rest;
use FileBird\Utils\Singleton;
defined( 'ABSPATH' ) || exit;
class RestApi {
use Singleton;
public function __construct() {
add_action( 'rest_api_init', array( $this, 'rest_api_init' ) );
}
public function rest_api_init() {
$rest_apis = array(
new FolderApi(),
new PublicApi(),
new SettingApi(),
new SyncApi(),
);
foreach ( $rest_apis as $rest_api ) {
$rest_api->register_rest_routes();
}
}
}