|
@@ -18,6 +18,7 @@ if (!class_exists("plug_prometheus")) {
|
|
add_action('rest_api_init', function () {
|
|
add_action('rest_api_init', function () {
|
|
register_rest_route('metrics', '/', array(
|
|
register_rest_route('metrics', '/', array(
|
|
'methods' => 'GET',
|
|
'methods' => 'GET',
|
|
|
|
+ 'permission_callback' => '__return_true',
|
|
'callback' => array(&$this, 'my_awesome_func'),
|
|
'callback' => array(&$this, 'my_awesome_func'),
|
|
));
|
|
));
|
|
});
|
|
});
|