Gate testing API for staging E2E
This commit is contained in:
@@ -10,7 +10,7 @@ class TestMailboxController extends Controller
|
||||
{
|
||||
public function index(): JsonResponse
|
||||
{
|
||||
abort_unless(app()->environment(['local', 'testing']), 404);
|
||||
abort_unless(config('e2e.testing_enabled'), 404);
|
||||
|
||||
return response()->json([
|
||||
'data' => Mailbox::all(),
|
||||
@@ -19,7 +19,7 @@ class TestMailboxController extends Controller
|
||||
|
||||
public function destroy(): JsonResponse
|
||||
{
|
||||
abort_unless(app()->environment(['local', 'testing']), 404);
|
||||
abort_unless(config('e2e.testing_enabled'), 404);
|
||||
|
||||
Mailbox::flush();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user