streams/Zotlabs/Module/Zot.php

29 lines
393 B
PHP
Raw Normal View History

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;
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
{
public function init()
{
$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
}
}