namespace . '/forms/{form}/statistics/{start}/{end}'; return $routes; } ); // api.admin.forms.statistics GET epicforms/v1.0.0/admin/forms/{form}/statistics/{start}/{end}. register_rest_route( $this->namespace, '/forms/(?P
[\w\d-]+)/statistics/(?P[\d-]+)/(?P[\d-]+)', [ [ 'methods' => WP_REST_Server::READABLE, 'callback' => [ Epicformbuilder_Handlers_REST_API_Form_Statistics::class, 'callback' ], 'schema' => [ Epicformbuilder_Handlers_REST_API_Form_Statistics::class, 'schema' ], 'permission_callback' => static function () { return current_user_can( 'manage_options' ); }, ], ], true ); } }