wordpress-activitypub/includes/rest/class-ostatus.php

34 lines
662 B
PHP
Raw Normal View History

<?php
namespace Activitypub\Rest;
2019-02-24 13:01:43 +01:00
/**
* ActivityPub OStatus REST-Class
*
* @author Matthias Pfefferle
*
* @see https://www.w3.org/community/ostatus/
*/
class Ostatus {
/**
* Register routes
*/
public static function register_routes() {
2019-09-27 10:12:59 +02:00
\register_rest_route(
ACTIVITYPUB_REST_NAMESPACE,
2022-01-27 13:09:11 +01:00
'/ostatus/remote-follow',
array(
array(
2020-09-18 16:36:09 +02:00
'methods' => \WP_REST_Server::READABLE,
'callback' => array( '\Activitypub\Rest\Ostatus', 'get' ),
2019-02-24 13:01:43 +01:00
// 'args' => self::request_parameters(),
2020-09-18 16:36:09 +02:00
'permission_callback' => '__return_true',
),
)
);
}
2019-02-24 13:01:43 +01:00
public static function get() {
// @todo implement
}
}