Add API V2 help page

This commit is contained in:
DariusIII
2018-06-04 11:31:10 +02:00
parent d7cf8f4b9f
commit b7f06a396d
5 changed files with 99 additions and 0 deletions
@@ -34,4 +34,28 @@ class ApiHelpController extends BasePageController
);
$this->pagerender();
}
/**
* @throws \Exception
*/
public function apiv2()
{
$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(
[
'content' => $content,
'title' => $title,
'meta_title' => $meta_title,
'meta_keywords' => $meta_keywords,
'meta_description' => $meta_description,
]
);
$this->pagerender();
}
}