mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ApiV1Controller, add announcements endpoint
This commit is contained in:
parent
d40a84533a
commit
fbe07c5161
2 changed files with 14 additions and 0 deletions
|
@ -2729,4 +2729,17 @@ class ApiV1Controller extends Controller
|
|||
|
||||
return $this->json([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/v1/announcements
|
||||
*
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAnnouncements(Request $request)
|
||||
{
|
||||
abort_if(!$request->user(), 403);
|
||||
|
||||
return $this->json([]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,6 +86,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
|||
|
||||
Route::get('preferences', 'Api\ApiV1Controller@getPreferences')->middleware($middleware);
|
||||
Route::get('trends', 'Api\ApiV1Controller@getTrends')->middleware($middleware);
|
||||
Route::get('announcements', 'Api\ApiV1Controller@getAnnouncements')->middleware($middleware);
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'v2'], function() use($middleware) {
|
||||
|
|
Loading…
Reference in a new issue