routes.php 4.1 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
20
21
		], 
		function()
		{
		/** ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP **/
karl's avatar
karl committed
22

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

Dominik Hebeler's avatar
Dominik Hebeler committed
25
26
		Route::get('img/piwik.png', 'ImageController@generateImage');

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

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
		Route::get('about', function()
		{
			return view('about')
				->with('title', trans('titles.about'))
				->with('css', 'about.css')
				->with('navbarFocus', 'kontakt');
		});
		Route::get('team', function()
		{
			return view('team.team')
				->with('title', trans('titles.team'))
				->with('css', 'team.css')
				->with('navbarFocus', 'kontakt');
		});
		Route::get('team/pubkey-wsb', function()
		{
			return view('team.pubkey-wsb')
				->with('title', trans('titles.team'))
				->with('navbarFocus', 'kontakt');
		});
55

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

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

Phil Höfer's avatar
Phil Höfer committed
67
68
69
70
71
72
		Route::get('tor', function()
		{
			return view('tor')
				->with('title', 'tor hidden service - MetaGer')
				->with('navbarFocus', 'dienste');
		});
73
74
		Route::get('spende', function()
		{
75
			return view('spende.spende')
76
77
78
79
				->with('title', trans('titles.spende'))
				->with('css', 'donation.css')
				->with('navbarFocus', 'foerdern');
		});
80
81
82
83
84
85
86
87
88
89
90
91
92

		Route::get('beitritt', function ()
		{
			return view('spende.beitritt')
				->with('title', trans('titles.beitritt'))
				->with('css', 'beitritt.css')
				->with('navbarFocus', 'foerdern');
		});

		Route::get('bform1.htm', function()
		{
			return redirect('beitritt');
		});
93
94
95
		Route::get('spendenaufruf', function()
		{
			return view('spende.spendenaufruf')
Dominik Hebeler's avatar
Dominik Hebeler committed
96
97
				->with('title', 'Spendenaufruf - MetaGer')
				->with('navbarFocus', 'foerdern');
98
99
		});

100
		Route::post('spende', 'MailController@donation');
101

102

103
104
105
106
107
108
109
		Route::get('datenschutz', function()
		{
			return view('datenschutz')
				->with('title', trans('titles.datenschutz'))
				->with('css', 'privacy.css')
				->with('navbarFocus', 'datenschutz');
		});
Dominik Hebeler's avatar
Dominik Hebeler committed
110

111
112
113
114
115
116
117
		Route::get('hilfe', function()
		{
			return view('hilfe')
				->with('title', trans('titles.hilfe'))
				->with('css', 'help.css')
				->with('navbarFocus', 'dienste');
		});
118

119
120
		Route::get('widget', function()
		{
121
            return view('widget.widget')
122
123
124
				->with('title', trans('titles.widget'))
				->with('css', 'widget.css')
				->with('navbarFocus', 'dienste');
karl's avatar
karl committed
125
        });
126
127
128
129
130
131
132

        Route::get('sitesearch', 'SitesearchController@loadPage');

        Route::get('websearch', function()
        {
            return view('widget.websearch')
                ->with('title', trans('titles.websearch'))
133
134
                ->with('css', 'websearch.css')
                ->with('navbarFocus', 'dienste');
135
136
		});
		
137
        Route::get('admin', 'AdminInterface@index');
138
139
        Route::get('admin/count', 'AdminInterface@count');
        Route::get('admin/check', 'AdminInterface@check');
Dominik Hebeler's avatar
Dominik Hebeler committed
140

141
		Route::get('settings', 'StartpageController@loadSettings');
karl's avatar
karl committed
142

143
144
145
146
		
		Route::get('meta/meta.ger3', 'MetaGerSearch@search');
		Route::get('meta/picture', 'Pictureproxy@get');
		Route::get('clickstats', 'LogController@clicklog');
147

148
149
150
		Route::get('qt', 'MetaGerSearch@quicktips');
		Route::get('tips', 'MetaGerSearch@tips');
		Route::get('opensearch.xml', 'StartpageController@loadPlugin');
151
152
153
154
		Route::get('owi', function()
		{
			return redirect('https://metager.de/klassik/en/owi/');
		});
155
	});