friendica-directory/src/classes/Routes/Http/Surprise.php

17 lines
405 B
PHP
Raw Normal View History

2019-02-03 15:30:31 +01:00
<?php
namespace Friendica\Directory\Routes\Http;
/**
* @author Hypolite Petovan <hypolite@mrpetovan.com>
2019-02-03 15:30:31 +01:00
*/
class Surprise extends BaseRoute
{
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
{
return (new \Friendica\Directory\Controllers\Api\Surprise(
$this->container->atlas
))->render($request, $response, $args);
}
}