streams/Code/Module/Nomad.php

27 lines
407 B
PHP
Raw Normal View History

<?php
namespace Code\Module;
/**
* @file Code/Module/Nomad.php
*
* @brief Nomad endpoint
*/
2022-08-27 04:01:22 +00:00
use Code\{
Nomad\NomadHandler,
Nomad\Receiver,
Web\Controller,
};
/**
* @brief Nomad module.
*
*/
class Nomad extends Controller
{
2022-08-31 20:43:07 +00:00
public function init()
{
$nomad = new Receiver(new NomadHandler());
json_return_and_die($nomad->run(),'application/x-nomad+json');
}
}