Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > filebird > includes > Rest
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
ApiInteface.php | File | 133 bytes | May 27 2024 10:21:44. | |
FolderApi.php | File | 3224 bytes | May 27 2024 10:21:44. | |
PublicApi.php | File | 4261 bytes | May 27 2024 10:21:44. | |
RestApi.php | File | 549 bytes | May 27 2024 10:21:44. | |
SettingApi.php | File | 1008 bytes | August 23 2024 17:15:40. | |
SyncApi.php | File | 1170 bytes | May 27 2024 10:21:44. |
<?php namespace FileBird\Rest; defined( 'ABSPATH' ) || exit; use FileBird\Controller\SyncController; class SyncApi { private $controller; public function register_rest_routes() { $this->controller = new SyncController(); register_rest_route( NJFB_REST_URL, 'export-csv', array( 'methods' => \WP_REST_Server::READABLE, 'callback' => array( $this->controller, 'exportCSV' ), 'permission_callback' => array( $this, 'permission_callback' ), ) ); register_rest_route( NJFB_REST_URL, 'import-csv', array( 'methods' => \WP_REST_Server::CREATABLE, 'callback' => array( $this->controller, 'importCSV' ), 'permission_callback' => array( $this, 'permission_callback' ), ) ); register_rest_route( NJFB_REST_URL, 'import-csv-detail', array( 'methods' => \WP_REST_Server::CREATABLE, 'callback' => array( $this->controller, 'getImportCSVDetail' ), 'permission_callback' => array( $this, 'permission_callback' ), ) ); } public function permission_callback() { return current_user_can( 'upload_files' ); } }
SILENT KILLER Tool