HEX
Server: Apache
System: Linux od-b43f49 4.9.0-0.bpo.12-amd64 #1 SMP Debian 4.9.210-1+deb9u1~deb8u1 (2020-06-09) x86_64
User: uid181852 (181852)
PHP: 8.2.30
Disabled: passthru,exec,system,popen,shell_exec,proc_open,pcntl_exec
Upload Files
File: /home/clients/94735d3feef25fe7d1511e6bdd8b0ef6/web/wp-content/plugins/gamipress/includes/api.php
<?php
/**
 * Rest API
 *
 * @package     GamiPress\Rest_API
 * @author      GamiPress <contact@gamipress.com>, Ruben Garcia <rubengcdev@gmail.com>
 * @since       1.6.0
 */
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) exit;

require_once GAMIPRESS_DIR . 'includes/api/class-wp-rest-gamipress-posts-controller.php';

/**
 * Register new Rest API routes
 *
 * @since 1.0.0
 */
function gamipress_rest_api_init() {

    // Register the /wp/v2/gamipress-posts endpoint (used on blocks to get a multiple post types endpoint)
    $controller = new WP_REST_GamiPress_Posts_Controller();
    $controller->register_routes();

}
add_action('rest_api_init', 'gamipress_rest_api_init');