proxitok/routes/following.php
2022-01-28 15:54:09 +01:00

16 lines
371 B
PHP

<?php
/**@var Bramus\Router\Router $router */
use Helpers\Following;
use Helpers\Misc;
use Views\Models\FollowingTemplate;
// Showing
$router->get('/following', function () {
$users = Following::getUsers();
$feed = Following::getAll($users);
$latte = Misc::latte();
$latte->render(Misc::getView('following'), new FollowingTemplate($users, $feed));
});