diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/public_timelines.php (renamed from routes/global_timeline.php) | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routes/global_timeline.php b/routes/public_timelines.php index 654d2c7..2d40328 100644 --- a/routes/global_timeline.php +++ b/routes/public_timelines.php @@ -2,8 +2,14 @@ use Digitigrade\Router; use Digitigrade\Timeline\GlobalTimeline; +use Digitigrade\Timeline\LocalTimeline; Router::getInstance()->mount('/feed/global', function (array $args) { $notes = (new GlobalTimeline())->getNotes(); render_template('global_timeline', ['notes' => $notes]); +}); + +Router::getInstance()->mount('/feed/local', function (array $args) { + $notes = (new LocalTimeline())->getNotes(); + render_template('local_timeline', ['notes' => $notes]); });
\ No newline at end of file |
