Adding to router
This commit is contained in:
parent
007d0459be
commit
e7f8d8c3b6
3 changed files with 5 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Module\Hostxrd;
|
||||
use Friendica\Module\HostMeta;
|
||||
use Friendica\Module\Nodeinfo;
|
||||
|
||||
require_once 'mod/xrd.php';
|
||||
|
@ -13,7 +13,7 @@ function _well_known_init(App $a)
|
|||
if ($a->argc > 1) {
|
||||
switch ($a->argv[1]) {
|
||||
case "host-meta":
|
||||
Hostxrd::printHostMeta();
|
||||
HostMeta::printHostMeta();
|
||||
break;
|
||||
case "x-social-relay":
|
||||
wk_social_relay();
|
||||
|
|
|
@ -42,6 +42,8 @@ class Router
|
|||
{
|
||||
$this->routeCollector->addRoute(['GET', 'POST'], '/itemsource[/{guid}]', Module\Itemsource::class);
|
||||
$this->routeCollector->addRoute(['GET'], '/amcd', Module\AccountManagementControlDocument::class);
|
||||
$this->routeCollector->addRoute(['GET'], '/host-meta', Module\HostMeta::class);
|
||||
$this->routeCollector->addRoute(['GET'], '/hostxrd', Module\HostMeta::class);
|
||||
}
|
||||
|
||||
public function __construct(RouteCollector $routeCollector = null)
|
||||
|
|
|
@ -10,7 +10,7 @@ use Friendica\Util\Crypto;
|
|||
/**
|
||||
* Prints the host-meta text
|
||||
*/
|
||||
class Hostxrd extends BaseModule
|
||||
class HostMeta extends BaseModule
|
||||
{
|
||||
public static function rawContent()
|
||||
{
|
Loading…
Reference in a new issue