routes.php 3.25 KB
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

14
15
16
    Route::group(['prefix' => LaravelLocalization::setLocale()], function()
    {
        /** ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP **/
karl's avatar
karl committed
17
        /* Route::get('/', function()
18
        {
karl's avatar
karl committed
19
            return view('index', [ 
karl's avatar
karl committed
20
            'title' => trans('titles.index'), 
21
            'homeIcon']);
karl's avatar
karl committed
22
23
24
        }); */

        Route::get('/', 'StartpageController@loadStartPage');
25

26
        Route::get('impressum', function()
27
        {
karl's avatar
karl committed
28
            return view('impressum')
karl's avatar
karl committed
29
                ->with('title', trans('titles.impressum'))
karl's avatar
karl committed
30
                ->with('css', 'impressum.css');
31
        });
Dominik Hebeler's avatar
Dominik Hebeler committed
32

33
34
        Route::get('about', function()
        {
karl's avatar
karl committed
35
            return view('about')
karl's avatar
karl committed
36
                ->with('title', trans('titles.about'))
37
                ->with('css', 'about.css');
38
        });
Dominik Hebeler's avatar
Dominik Hebeler committed
39
40
        Route::get('team', function()
        {
karl's avatar
karl committed
41
            return view('team.team')
karl's avatar
karl committed
42
                ->with('title', trans('titles.team'))
43
                ->with('css', 'team.css');
Dominik Hebeler's avatar
Dominik Hebeler committed
44
45
46
        });
        Route::get('team/pubkey-wsb', function()
        {
karl's avatar
karl committed
47
            return view('team.pubkey-wsb')
karl's avatar
karl committed
48
                ->with('title', trans('titles.team'));
Dominik Hebeler's avatar
Dominik Hebeler committed
49
        });
50
51
52
53

        Route::get('kontakt', function()
        {
            return view('kontakt.kontakt')
karl's avatar
karl committed
54
                ->with('title', trans('titles.kontakt'))
55
56
57
                ->with('css', 'kontakt.css')
                ->with('js', ['openpgp.min.js','kontakt.js']);
        });
58

59
        Route::post('kontakt', 'MailController@contactMail');
Dominik Hebeler's avatar
Dominik Hebeler committed
60
61
62
63

        Route::get('spende', function()
        {
            return view('spende')
karl's avatar
karl committed
64
                ->with('title', trans('titles.spende'))
Dominik Hebeler's avatar
Dominik Hebeler committed
65
66
67
                ->with('css', 'donation.css');
        });
        Route::post('spende', 'MailController@donation');
68

69
70
71
        Route::get('datenschutz', function()
        {
            return view('datenschutz')
karl's avatar
karl committed
72
                ->with('title', trans('titles.datenschutz'))
73
                ->with('css', 'privacy.css');
karl's avatar
karl committed
74
        });
Dominik Hebeler's avatar
Dominik Hebeler committed
75

76
77
78
        Route::get('hilfe', function()
        {
            return view('hilfe')
karl's avatar
karl committed
79
                ->with('title', trans('titles.hilfe'))
80
                ->with('css', 'help.css');
81
        });
82

karl's avatar
karl committed
83
84
85
86
87
88
        Route::get('widget', function()
        {
            return view('widget')
                ->with('title', trans('titles.widget'))
                ->with('css', 'widget.css');
        });
karl's avatar
karl committed
89
        
90
91
92
93
        Route::get('settings', function()
        {
            return view('settings')
                ->with('title', 'Einstellungen') // TODO Titel übersetzen
karl's avatar
karl committed
94
95
                ->with('css', 'settings.css')
                ->with('js', ['settings.js']);
96
        });
karl's avatar
karl committed
97

karl's avatar
karl committed
98
        
99
        Route::get('meta/meta.ger3', 'MetaGerSearch@search');
100
        Route::get('meta/picture', 'Pictureproxy@get');
101
102

        Route::get('qt', 'MetaGerSearch@quicktips');
103
        Route::get('tips', 'MetaGerSearch@tips');
104
        Route::get('opensearch.xml', 'StartpageController@loadPlugin');
105
    });