Commit ac0a48a0 authored by Dominik Hebeler's avatar Dominik Hebeler

enabled referer check and added redirect for settings page

parent 20d7b0f7
......@@ -101,17 +101,6 @@ class StartpageController extends Controller
return $response;
}
public function loadSettings(Request $request)
{
return view('settings')
->with('title', 'Einstellungen')
->with('js', ['settings.js'])
->with('navbarFocus', 'suche');
die(var_dump($foki));
return $xml->saveXML();
}
public function berlin(Request $request)
{
$link = "";
......
......@@ -167,14 +167,16 @@ Route::group(
->with('request', $this->input('request', 'GET'));
});
Route::group([/*'middleware' => ['referer.check'],*/'prefix' => 'admin'], function () {
Route::group(['middleware' => ['referer.check'], 'prefix' => 'admin'], function () {
Route::get('/', 'AdminInterface@index');
Route::match(['get', 'post'], 'count', 'AdminInterface@count');
Route::get('check', 'AdminInterface@check');
Route::get('engines', 'AdminInterface@engines');
});
Route::get('settings', 'StartpageController@loadSettings');
Route::get('settings', function () {
return redirect(LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), '/'));
});
Route::match(['get', 'post'], 'meta/meta.ger3', 'MetaGerSearch@search')->middleware('humanverification');
Route::get('meta/loadMore', 'MetaGerSearch@loadMore');
......
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