mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:01:24 +00:00
Update NfoController and add missing route to web.php
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2018-04-27 DariusIII
|
||||
* Chg: Update NfoController and add missing route to web.php
|
||||
* Chg: Update CartController, use redirect instead of 404 page when no data is found on store function
|
||||
* Chg: Update getNzb PHPDOC block
|
||||
* Chg: Use laravel's response for nzb downloads
|
||||
|
||||
@@ -34,7 +34,7 @@ class BrowseController extends BasePageController
|
||||
|
||||
$this->smarty->assign('results', $results);
|
||||
|
||||
$meta_title = 'Browse Nzbs';
|
||||
$meta_title = 'Browse All Releases';
|
||||
$meta_keywords = 'browse,nzb,description,details';
|
||||
$meta_description = 'Browse for Nzbs';
|
||||
|
||||
|
||||
@@ -10,12 +10,17 @@ use Blacklight\utility\Utility;
|
||||
class NfoController extends BasePageController
|
||||
{
|
||||
/**
|
||||
* @param string $id
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function showNfo(Request $request)
|
||||
public function showNfo($id = '', Request $request)
|
||||
{
|
||||
if ($request->has('id')) {
|
||||
$rel = Release::getByGuid($request->input('id'));
|
||||
$this->setPrefs();
|
||||
|
||||
if ($id) {
|
||||
$rel = Release::getByGuid($id);
|
||||
|
||||
if (! $rel) {
|
||||
$this->show404();
|
||||
|
||||
+2
-2
@@ -103,9 +103,9 @@ Route::get('music/{id?}', 'MusicController@show');
|
||||
|
||||
Route::post('music/{id?}', 'MusicController@show');
|
||||
|
||||
Route::get('nfo', 'NfoController@showNfo');
|
||||
Route::get('nfo/{id?}', 'NfoController@showNfo');
|
||||
|
||||
Route::post('nfo', 'NfoController@showNfo');
|
||||
Route::post('nfo/{id?}', 'NfoController@showNfo');
|
||||
|
||||
Route::get('xxx/{id?}', 'AdultController@show');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user