Commit 3c75c88e authored by Davide Aprea's avatar Davide Aprea
Browse files

add route for test with browser/human verification

parent f39d3d00
......@@ -20,7 +20,7 @@ class Stresstest extends MetaGerSearch
public function search(Request $request, MetaGer $metager, $timing = false)
{
if(empty($request->input('eingabe'))) {
return redirect("admin/stress/search?eingabe=test");
return redirect("?eingabe=test" . rand(), 301);
}
$metager->setDummy(true);
$metager->setAdgoalHash(true);
......
......@@ -194,6 +194,7 @@ Route::group(
Route::post('service-desk', 'ServiceDesk@webhook');
Route::get('stress', 'Stresstest@index');
Route::get('stress/search', 'Stresstest@search');
Route::get('stress/search/verify', 'Stresstest@search')->middleware('browserverification', 'humanverification');
});
Route::get('settings', function () {
......
Supports Markdown
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