Files
newznab-tmux-NNTmux/app/Http/Controllers/ApiHelpController.php
T
2022-10-23 23:18:00 +02:00

46 lines
1.3 KiB
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ApiHelpController extends BasePageController
{
public function __construct(Request $request)
{
parent::__construct($request);
}
/**
* @throws \Exception
*/
public function index(): void
{
$this->setPrefs();
$title = 'Api Help';
$meta_title = 'Api Help Topics';
$meta_keywords = 'view,nzb,api,details,help,json,rss,atom';
$meta_description = 'View description of the site Nzb Api.';
$content = $this->smarty->fetch('apidesc.tpl');
$this->smarty->assign(compact('content', 'title', 'meta_title', 'meta_keywords', 'meta_description'));
$this->pagerender();
}
/**
* @throws \Exception
*/
public function apiv2(): void
{
$this->setPrefs();
$title = 'Api V2 Help';
$meta_title = 'Api V2 Help Topics';
$meta_keywords = 'view,nzb,api,details,help,json,rss,atom';
$meta_description = 'View description of the site Nzb version 2 Api.';
$content = $this->smarty->fetch('apiv2desc.tpl');
$this->smarty->assign(compact('content', 'title', 'meta_title', 'meta_keywords', 'meta_description'));
$this->pagerender();
}
}