31 lines
578 B
PHP
31 lines
578 B
PHP
|
<?php
|
||
|
namespace Activitypub\Rest;
|
||
|
|
||
|
/**
|
||
|
* ActivityPub OStatus REST-Class
|
||
|
*
|
||
|
* @author Matthias Pfefferle
|
||
|
*
|
||
|
* @see https://www.w3.org/community/ostatus/
|
||
|
*/
|
||
|
class Ostatus {
|
||
|
/**
|
||
|
* Register routes
|
||
|
*/
|
||
|
public static function register_routes() {
|
||
|
\register_rest_route(
|
||
|
'activitypub/1.0', '/ostatus/remote-follow', array(
|
||
|
array(
|
||
|
'methods' => \WP_REST_Server::READABLE,
|
||
|
'callback' => array( '\Activitypub\Rest\Ostatus', 'get' ),
|
||
|
// 'args' => self::request_parameters(),
|
||
|
),
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
public static function get() {
|
||
|
// @todo implement
|
||
|
}
|
||
|
}
|