routes.php 847 Bytes
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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.
|
*/

# Unsere Startseite. Hier fängt alles an
15
16
17
18
19
20
21
22
23
24
25
Route::get('{locale?}', 	
	[ 'uses' => 'StartpageController@loadStartPage']
)->where('locale', '[a-z]{1,2}');

Route::get('{locale?}/{subpage}', 
	[ 'uses' => 'StartpageController@loadLocalPage']
)->where('locale', '[a-z]{1,2}');

Route::get('{subpage}', 
	[ 'uses' => 'StartpageController@loadPage']
);
Dominik Hebeler's avatar
Dominik Hebeler committed
26
27

# Unsere MetaGer Suche!!
28
29
30
Route::get('/meta/meta.ger3', 
	[ 'uses' => 'MetaGerSearch@forwardToServer' ]
);