mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Remove reporting of existing tags from ApiV2 capabilities response
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
2020-01-10 DariusIII
|
||||
* Chg: Remove reporting of existing tags from ApiV2 capabilities response
|
||||
2020-01-06 DariusIII
|
||||
* Fix: Fix access to user profiles as admin
|
||||
2020-01-02 DariusIII
|
||||
|
||||
@@ -27,16 +27,14 @@ class ApiV2Controller extends BasePageController
|
||||
*/
|
||||
public function capabilities(): \Illuminate\Http\JsonResponse
|
||||
{
|
||||
$serverroot = url('/');
|
||||
$category = Category::getForApi();
|
||||
$tags = Release::existingTags();
|
||||
|
||||
$capabilities = [
|
||||
'server' => [
|
||||
'title' => Settings::settingValue('site.main.title'),
|
||||
'strapline' => Settings::settingValue('site.main.strapline'),
|
||||
'email' => Settings::settingValue('site.main.email'),
|
||||
'url' => $serverroot,
|
||||
'url' => url('/'),
|
||||
],
|
||||
'limits' => [
|
||||
'max' => 100,
|
||||
@@ -53,7 +51,6 @@ class ApiV2Controller extends BasePageController
|
||||
'audio-search' => ['available' => 'no', 'supportedParams' => ''],
|
||||
],
|
||||
'categories' => fractal($category, new CategoryTransformer()),
|
||||
'tags' => fractal($tags, new TagsTransformer()),
|
||||
];
|
||||
|
||||
return response()->json($capabilities);
|
||||
|
||||
Reference in New Issue
Block a user