2018-04-23 01:51:46 +00:00
|
|
|
<?php
|
2021-12-03 03:01:39 +00:00
|
|
|
|
2018-04-23 01:51:46 +00:00
|
|
|
/**
|
|
|
|
* @file Zotlabs/Module/Zot.php
|
|
|
|
*
|
2018-06-25 01:54:29 +00:00
|
|
|
* @brief Zot endpoint.
|
2018-04-23 01:51:46 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
|
2018-11-20 01:30:22 +00:00
|
|
|
use Zotlabs\Web\Controller;
|
|
|
|
use Zotlabs\Zot6\Receiver;
|
|
|
|
use Zotlabs\Zot6\Zot6Handler;
|
2018-06-25 01:54:29 +00:00
|
|
|
|
2018-04-23 01:51:46 +00:00
|
|
|
/**
|
|
|
|
* @brief Zot module.
|
|
|
|
*
|
|
|
|
*/
|
2021-12-02 23:02:31 +00:00
|
|
|
class Zot extends Controller
|
|
|
|
{
|
2021-12-06 21:19:19 +00:00
|
|
|
public function init()
|
|
|
|
{
|
2018-11-20 01:30:22 +00:00
|
|
|
$zot = new Receiver(new Zot6Handler());
|
2021-10-28 20:02:31 +00:00
|
|
|
json_return_and_die($zot->run(),'application/x-nomad+json');
|
2018-04-23 01:51:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|