routes.php 2.29 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', [ 
20
21
22
            'title' => 'MetaGer: Sicher suchen & finden, Privatsphäre schützen', 
            'homeIcon']);
        });
23

24
        Route::get('impressum', function()
25
        {
karl's avatar
karl committed
26
27
28
            return view('impressum')
                ->with('title', 'Impressum')
                ->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
34
            return view('about')
                ->with('title', 'Über Uns');
35
        });
Dominik Hebeler's avatar
Dominik Hebeler committed
36
37
        Route::get('team', function()
        {
karl's avatar
karl committed
38
39
            return view('team.team')
                ->with('title', 'Team');
Dominik Hebeler's avatar
Dominik Hebeler committed
40
41
42
        });
        Route::get('team/pubkey-wsb', function()
        {
karl's avatar
karl committed
43
44
            return view('team.pubkey-wsb')
                ->with('title', 'Team');
Dominik Hebeler's avatar
Dominik Hebeler committed
45
        });
46
47
48
49
50
51
52
53

        Route::get('kontakt', function()
        {
            return view('kontakt.kontakt')
                ->with('title', 'Kontakt')
                ->with('css', 'kontakt.css')
                ->with('js', ['openpgp.min.js','kontakt.js']);
        });
54

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

        Route::get('spende', function()
        {
            return view('spende')
                ->with('title', 'Kontakt')
                ->with('css', 'donation.css');
        });
        Route::post('spende', 'MailController@donation');
64

65
66
67
68
69
        Route::get('datenschutz', function()
        {
            return view('datenschutz')
                ->with('title', 'Datenschutz und Privatsphäre')
                ->with('css', 'privacy.css');
karl's avatar
karl committed
70
        });
Dominik Hebeler's avatar
Dominik Hebeler committed
71

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