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