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

31 lines
578 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/1.0', '/ostatus/remote-follow', array(
array(
'methods' => \WP_REST_Server::READABLE,
2019-02-24 13:01:43 +01:00
'callback' => array( '\Activitypub\Rest\Ostatus', 'get' ),
// 'args' => self::request_parameters(),
),
)
);
}
2019-02-24 13:01:43 +01:00
public static function get() {
// @todo implement
}
}