Move Module\Base\Api to Module\BaseApi
This commit is contained in:
parent
0de8e4db08
commit
75a2190af5
4 changed files with 10 additions and 13 deletions
|
@ -2,18 +2,15 @@
|
|||
|
||||
namespace Friendica\Module\Api\Mastodon;
|
||||
|
||||
use Friendica\Object\Api\Mastodon;
|
||||
use Friendica\Object\Api\Mastodon\Relationship;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Module\Base\Api;
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Network\HTTPException;
|
||||
|
||||
/**
|
||||
* @see https://docs.joinmastodon.org/methods/accounts/follow_requests
|
||||
*/
|
||||
class FollowRequests extends Api
|
||||
class FollowRequests extends BaseApi
|
||||
{
|
||||
public static function init(array $parameters = [])
|
||||
{
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
namespace Friendica\Module\Api\Mastodon;
|
||||
|
||||
use Friendica\Object\Api\Mastodon\Instance as InstanceEntity;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Module\Base\Api;
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Object\Api\Mastodon\Instance as InstanceEntity;
|
||||
|
||||
/**
|
||||
* @see https://docs.joinmastodon.org/api/rest/instances/
|
||||
*/
|
||||
class Instance extends Api
|
||||
class Instance extends BaseApi
|
||||
{
|
||||
/**
|
||||
* @param array $parameters
|
||||
|
|
|
@ -5,14 +5,14 @@ namespace Friendica\Module\Api\Mastodon\Instance;
|
|||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Module\Base\Api;
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
/**
|
||||
* Undocumented API endpoint that is implemented by both Mastodon and Pleroma
|
||||
*/
|
||||
class Peers extends Api
|
||||
class Peers extends BaseApi
|
||||
{
|
||||
/**
|
||||
* @param array $parameters
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Module\Base;
|
||||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPException;
|
||||
|
||||
require_once __DIR__ . '/../../../include/api.php';
|
||||
require_once __DIR__ . '/../../include/api.php';
|
||||
|
||||
class Api extends BaseModule
|
||||
class BaseApi extends BaseModule
|
||||
{
|
||||
/**
|
||||
* @var string json|xml|rss|atom
|
Loading…
Reference in a new issue