MetaGerSearch.php 765 Bytes
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
5
<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
6
use Illuminate\Http\Request;
Dominik Hebeler's avatar
Dominik Hebeler committed
7
use App\MetaGer\Forwarder;
8
use App\MetaGer\Results;
Dominik Hebeler's avatar
Dominik Hebeler committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

class MetaGerSearch extends Controller
{
    /**
     * Select a free Server to forward the Request to:
     *
     * @param  int  $id
     * @return Response
     */
    public function forwardToServer()
    {
        
        return Forwarder::getFreeServer();
        return var_dump($serversArray);
        return $cfg['redis']['password'];


        #return view('index', [ 'title' => 'MetaGer: Sicher suchen & finden, Privatsphäre schützen']);
    }

29
30
31
32
33
34
    public function search(Request $request)
    {
        $results = new Results($request);
        return $results->loadSearchEngines();
    }

Dominik Hebeler's avatar
Dominik Hebeler committed
35
}