routes.php 3.06 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
17
18
19
    Route::group(
        [
            'prefix' => LaravelLocalization::setLocale(), 
            'middleware' => [ 'localeSessionRedirect', 'localizationRedirect' ]
        ], 
        function()
20
        {
21
        /** ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP **/
karl's avatar
karl committed
22
23

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

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

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

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

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

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

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

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

karl's avatar
karl committed
82
83
84
85
86
87
        Route::get('widget', function()
        {
            return view('widget')
                ->with('title', trans('titles.widget'))
                ->with('css', 'widget.css');
        });
karl's avatar
karl committed
88
        
89
        Route::get('settings', 'StartpageController@loadSettings');
karl's avatar
karl committed
90

karl's avatar
karl committed
91
        
92
        Route::get('meta/meta.ger3', 'MetaGerSearch@search');
93
        Route::get('meta/picture', 'Pictureproxy@get');
Dominik Hebeler's avatar
Dominik Hebeler committed
94
        Route::get('clickstats', 'LogController@clicklog');
95
96

        Route::get('qt', 'MetaGerSearch@quicktips');
97
        Route::get('tips', 'MetaGerSearch@tips');
98
        Route::get('opensearch.xml', 'StartpageController@loadPlugin');
99
    });