streams/Zotlabs/Module/Zot.php

28 lines
384 B
PHP
Raw Normal View History

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;
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.
*
*/
class Zot extends Controller {
2018-04-23 01:51:46 +00:00
function init() {
$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
}
}