Add new POST route /msearch with associated controller

This commit is contained in:
Hypolite Petovan 2018-12-23 21:22:52 -05:00
commit 8db05cfa7c
3 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?php
namespace Friendica\Directory\Routes\Http;
/**
* @author Hypolite Petovan <mrpetovan@gmail.com>
*/
class MatchSearch extends BaseRoute
{
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
{
return (new \Friendica\Directory\Controllers\Api\MatchSearch(
$this->container->atlas,
$this->container->get('\Friendica\Directory\Models\Profile'),
$this->container->l10n
))->render($request, $response, $args);
}
}