From e1ad307b531c27ec6bfaf8b4d018991b0d4a78f3 Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 6 Dec 2024 20:43:26 +0000 Subject: initial commit hardcoded functionality mostly! --- routes/note.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 routes/note.php (limited to 'routes/note.php') diff --git a/routes/note.php b/routes/note.php new file mode 100644 index 0000000..9c5e507 --- /dev/null +++ b/routes/note.php @@ -0,0 +1,20 @@ +mount('/post/:id', function (array $args) { + json_response([ + 'type' => 'note', + 'self' => path_to_uri('/post/' . $args['id']), + 'created' => '2024-12-06T20:14:00+00:00', + 'author' => path_to_uri('/user/winter'), + 'plainContent' => 'meow :3', + 'language' => 'eng', + 'inReplyTo' => null, + 'threadApex' => path_to_uri('/post/' . $args['id']), + 'privacy' => [ + 'scope' => 'public', + 'indexable' => true + ] + ]); +}); -- cgit v1.3