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

18 lines
459 B
PHP
Raw Normal View History

2018-11-12 03:08:33 +01:00
<?php
namespace Friendica\Directory\Routes\Http;
/**
* @author Hypolite Petovan <hypolite@mrpetovan.com>
2018-11-12 03:08:33 +01:00
*/
class Photo extends BaseRoute
{
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
{
2018-11-16 05:41:32 +01:00
return (new \Friendica\Directory\Controllers\Api\Photo(
$this->container->atlas,
$this->container->get('defaultProfilePictureSmallPath')
2018-11-12 03:08:33 +01:00
))->render($request, $response, $args);
}
}