From d9715b3b66b5c8aa4a9981beda1f51de7a8af7ba Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Thu, 11 May 2017 09:33:01 +0200 Subject: [PATCH] =?UTF-8?q?Admin=20Interface=20ist=20wieder=20gesch=C3=BCt?= =?UTF-8?q?zt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Umzug der Fetcher Statistik auf /admin --- app/Http/Controllers/AdminInterface.php | 6 ------ routes/web.php | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/app/Http/Controllers/AdminInterface.php b/app/Http/Controllers/AdminInterface.php index 17503273e..4a13935d0 100644 --- a/app/Http/Controllers/AdminInterface.php +++ b/app/Http/Controllers/AdminInterface.php @@ -9,12 +9,6 @@ use Response; class AdminInterface extends Controller { public function index(Request $request) - { - $localFetcher = file_get_contents(action("AdminInterface@getFetcherStatus")); - die(var_dump($localFetcher)); - } - - public function getFetcherStatus() { // Let's get the stats for this server. // First we need to check, which Fetcher could be available by parsing the sumas.xml diff --git a/routes/web.php b/routes/web.php index 80f445e0c..199228a15 100644 --- a/routes/web.php +++ b/routes/web.php @@ -129,9 +129,8 @@ Route::group( Route::get('zitat-suche', 'ZitatController@zitatSuche'); - Route::group([/*'middleware' => ['referer.check'],*/ 'prefix' => 'admin'], function () { + Route::group(['middleware' => ['referer.check'], 'prefix' => 'admin'], function () { Route::get('/', 'AdminInterface@index'); - Route::get('fetcher-status', "AdminInterface@getFetcherStatus"); Route::get('count', 'AdminInterface@count'); Route::get('check', 'AdminInterface@check'); Route::get('engines', 'AdminInterface@engines'); -- GitLab