diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-02-23 11:06:39 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2023-02-23 11:06:52 -0100 |
commit | 0298fb6294ba4cec801c85802d904a39afa7a6e5 (patch) | |
tree | 7a0aed384d4cbdb7f83ba52c804fe74373d0b033 /appinfo/routes.php | |
parent | 4753bca888e315a15ebf9cccb1b1fe9a94428160 (diff) |
add media_attachments to api
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 787f0d16..13e467be 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -83,8 +83,13 @@ return [ ['name' => 'Api#favourites', 'url' => '/api/v1/favourites/', 'verb' => 'GET'], ['name' => 'Api#notifications', 'url' => '/api/v1/notifications', 'verb' => 'GET'], ['name' => 'Api#tag', 'url' => '/api/v1/timelines/tag/{hashtag}', 'verb' => 'GET'], + ['name' => 'Api#mediaNew', 'url' => '/api/v1/media', 'verb' => 'POST'], + ['name' => 'Api#mediaGet', 'url' => '/api/v1/media/{nid}', 'verb' => 'GET'], + ['name' => 'Api#mediaOpen', 'url' => '/media/{uuid}', 'verb' => 'GET'], + ['name' => 'Api#statusNew', 'url' => '/api/v1/statuses', 'verb' => 'POST'], ['name' => 'Api#statusGet', 'url' => '/api/v1/statuses/{nid}', 'verb' => 'GET'], + ['name' => 'Api#statusContext', 'url' => '/api/v1/statuses/{nid}/context', 'verb' => 'GET'], ['name' => 'Api#accountStatuses', 'url' => '/api/v1/accounts/{account}/statuses', 'verb' => 'GET'], // Api for local front-end |