routes.php 3.5 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
    Route::group(
        [
16
17
            'prefix' => LaravelLocalization::setLocale()/*, 
            'middleware' => [ 'localeSessionRedirect', 'localizationRedirect' ]*/
18
19
        ], 
        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'))
29
30
                ->with('css', 'impressum.css')
                ->with('navbarFocus', 'kontakt');
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
38
                ->with('css', 'about.css')
                ->with('navbarFocus', 'kontakt');
39
        });
Dominik Hebeler's avatar
Dominik Hebeler committed
40
41
        Route::get('team', function()
        {
karl's avatar
karl committed
42
            return view('team.team')
karl's avatar
karl committed
43
                ->with('title', trans('titles.team'))
44
45
                ->with('css', 'team.css')
                ->with('navbarFocus', 'kontakt');
Dominik Hebeler's avatar
Dominik Hebeler committed
46
47
48
        });
        Route::get('team/pubkey-wsb', function()
        {
karl's avatar
karl committed
49
            return view('team.pubkey-wsb')
50
51
                ->with('title', trans('titles.team'))
                ->with('navbarFocus', 'kontakt');
Dominik Hebeler's avatar
Dominik Hebeler committed
52
        });
53
54
55
56

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

63
        Route::post('kontakt', 'MailController@contactMail');
Dominik Hebeler's avatar
Dominik Hebeler committed
64
65
66
67

        Route::get('spende', function()
        {
            return view('spende')
karl's avatar
karl committed
68
                ->with('title', trans('titles.spende'))
69
70
                ->with('css', 'donation.css')
                ->with('navbarFocus', 'foerdern');
Dominik Hebeler's avatar
Dominik Hebeler committed
71
72
        });
        Route::post('spende', 'MailController@donation');
73

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

82
83
84
        Route::get('hilfe', function()
        {
            return view('hilfe')
karl's avatar
karl committed
85
                ->with('title', trans('titles.hilfe'))
86
87
                ->with('css', 'help.css')
                ->with('navbarFocus', 'dienste');
88
        });
89

karl's avatar
karl committed
90
91
92
93
        Route::get('widget', function()
        {
            return view('widget')
                ->with('title', trans('titles.widget'))
94
95
                ->with('css', 'widget.css')
                ->with('navbarFocus', 'dienste');
karl's avatar
karl committed
96
        });
karl's avatar
karl committed
97
        
98
        Route::get('settings', 'StartpageController@loadSettings');
karl's avatar
karl committed
99

karl's avatar
karl committed
100
        
101
        Route::get('meta/meta.ger3', 'MetaGerSearch@search');
102
        Route::get('meta/picture', 'Pictureproxy@get');
Dominik Hebeler's avatar
Dominik Hebeler committed
103
        Route::get('clickstats', 'LogController@clicklog');
104
105

        Route::get('qt', 'MetaGerSearch@quicktips');
106
        Route::get('tips', 'MetaGerSearch@tips');
107
        Route::get('opensearch.xml', 'StartpageController@loadPlugin');
108
    });