diff options
| author | winter | 2025-01-15 20:33:38 +0000 |
|---|---|---|
| committer | winter | 2025-01-15 20:33:38 +0000 |
| commit | 75b3778dccccddb5cc90b2b4e0a3f958826ad8ba (patch) | |
| tree | 6240a96338f58b5f175e97132a4ce5d804e3b2da /routes/public_timelines.php | |
| parent | 07df9da970ceaa54c734d73bdb148fa36d42db63 (diff) | |
implement home timeline
Diffstat (limited to 'routes/public_timelines.php')
| -rw-r--r-- | routes/public_timelines.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/routes/public_timelines.php b/routes/public_timelines.php deleted file mode 100644 index b60f141..0000000 --- a/routes/public_timelines.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Digitigrade\Router; -use Digitigrade\Timeline\GlobalTimeline; -use Digitigrade\Timeline\LocalTimeline; - -Router::getInstance()->mount('/feed/global', function (array $args) { - $items = (new GlobalTimeline())->getPage(); - render_template('timeline', ['kind' => 'global', 'items' => $items]); -}); - -Router::getInstance()->mount('/feed/local', function (array $args) { - $items = (new LocalTimeline())->getPage(); - render_template('timeline', ['kind' => 'local', 'items' => $items]); -});
\ No newline at end of file |
