diff options
| author | winter | 2024-12-23 19:48:28 +0000 |
|---|---|---|
| committer | winter | 2024-12-23 19:48:28 +0000 |
| commit | 505d25e29f1c13403bfbfe7cd9d1ab125be87a4b (patch) | |
| tree | 1f2e914b3aacd57defb84acf78a871ad1f896927 /routes/public_timelines.php | |
| parent | bccad1118364427ea5c97c08d132fd128368760b (diff) | |
make the timelines look nicer and add local tl
Diffstat (limited to 'routes/public_timelines.php')
| -rw-r--r-- | routes/public_timelines.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/routes/public_timelines.php b/routes/public_timelines.php new file mode 100644 index 0000000..2d40328 --- /dev/null +++ b/routes/public_timelines.php @@ -0,0 +1,15 @@ +<?php + +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 |
