2018-04-23 01:51:46 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-11-20 01:30:22 +00:00
|
|
|
class Zot extends Controller {
|
2018-04-23 01:51:46 +00:00
|
|
|
|
|
|
|
function init() {
|
2018-11-20 01:30:22 +00:00
|
|
|
$zot = new Receiver(new Zot6Handler());
|
2018-11-19 05:53:09 +00:00
|
|
|
json_return_and_die($zot->run(),'application/x-zot+json');
|
2018-04-23 01:51:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|