Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
3c75c88e
Commit
3c75c88e
authored
Dec 02, 2020
by
Davide Aprea
Browse files
add route for test with browser/human verification
parent
f39d3d00
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/Stresstest.php
View file @
3c75c88e
...
...
@@ -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
);
...
...
routes/web.php
View file @
3c75c88e
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment