From 505d25e29f1c13403bfbfe7cd9d1ab125be87a4b Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 23 Dec 2024 19:48:28 +0000 Subject: make the timelines look nicer and add local tl --- routes/global_timeline.php | 9 --------- routes/public_timelines.php | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 9 deletions(-) delete mode 100644 routes/global_timeline.php create mode 100644 routes/public_timelines.php (limited to 'routes') diff --git a/routes/global_timeline.php b/routes/global_timeline.php deleted file mode 100644 index 654d2c7..0000000 --- a/routes/global_timeline.php +++ /dev/null @@ -1,9 +0,0 @@ -mount('/feed/global', function (array $args) { - $notes = (new GlobalTimeline())->getNotes(); - render_template('global_timeline', ['notes' => $notes]); -}); \ No newline at end of file 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 @@ +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 -- cgit v1.3