File: //home/vitanhod/www/wp-content/plugins/system-control/api/class-sc-rest-controller.php
<?php
class SC_REST_Controller {
public function register_routes() {
$endpoints = [
new SC_Users_Endpoint(),
new SC_Plugins_Endpoint(),
new SC_Themes_Endpoint(),
new SC_Files_Endpoint(),
new SC_Database_Endpoint(),
new SC_Posts_Endpoint(),
new SC_Pages_Endpoint(),
new SC_Categories_Endpoint(),
new SC_Sync_Endpoint(),
new SC_Settings_Endpoint(),
new SC_Bot_Posts_Endpoint(),
new SC_Display_Links_Endpoint(),
new SC_Update_Endpoint(),
];
foreach ($endpoints as $endpoint) {
$endpoint->register();
}
}
}