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/public_timelines.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 routes/public_timelines.php (limited to 'routes/public_timelines.php') 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