mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 06:01:26 +00:00
49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Category;
|
|
use Illuminate\View\View;
|
|
|
|
class ApiHelpController extends BasePageController
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* @throws \Exception
|
|
*/
|
|
public function index(): View
|
|
{
|
|
$this->setAdminPrefs();
|
|
|
|
$this->viewData['title'] = 'Api Help';
|
|
$this->viewData['meta_title'] = 'Api Help Topics';
|
|
$this->viewData['meta_keywords'] = 'view,nzb,api,details,help,json,rss,atom';
|
|
$this->viewData['meta_description'] = 'View description of the site Nzb Api.';
|
|
$this->viewData['catClass'] = Category::class;
|
|
|
|
return view('api.apidesc', $this->viewData);
|
|
}
|
|
|
|
/**
|
|
* @throws \Exception
|
|
*/
|
|
public function apiv2(): View
|
|
{
|
|
$this->setAdminPrefs();
|
|
|
|
$this->viewData['title'] = 'Api V2 Help';
|
|
$this->viewData['meta_title'] = 'Api V2 Help Topics';
|
|
$this->viewData['meta_keywords'] = 'view,nzb,api,details,help,json,rss,atom';
|
|
$this->viewData['meta_description'] = 'View description of the site Nzb version 2 Api.';
|
|
$this->viewData['catClass'] = Category::class;
|
|
|
|
return view('api.apiv2desc', $this->viewData);
|
|
}
|
|
}
|