Commit 46c7b3ae authored by Dominik Hebeler's avatar Dominik Hebeler

Admin Interface ist wieder geschützt

Umzug der Fetcher Statistik auf /admin
parent 4e2586d0
......@@ -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
......
......@@ -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');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment