proxitok/routes/following.php

16 lines
371 B
PHP
Raw Normal View History

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