routes.php 2.73 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
    Route::group(['prefix' => LaravelLocalization::setLocale()], function()
    {
        /** ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP **/
        Route::get('/', function()
        {
karl's avatar
karl committed
19
            return view('index', [ 
karl's avatar
karl committed
20
            'title' => trans('titles.index'), 
21
22
            'homeIcon']);
        });
23

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

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

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

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

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

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

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

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

88
89
90
        Route::get('meta/meta.ger3', 'MetaGerSearch@search');

        Route::get('qt', 'MetaGerSearch@quicktips');
91
    });