Skip to content
Snippets Groups Projects
routes.php 3.32 KiB
Newer Older
  • Learn to ignore specific revisions
  • Dominik Hebeler's avatar
    Dominik Hebeler committed
    <?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.
    |
    */
    
    
    			'prefix' => LaravelLocalization::setLocale()/*, 
    			'middleware' => [ 'localeSessionRedirect', 'localizationRedirect' ]*/
    
    		], 
    		function()
    		{
    		/** ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP **/
    
    karl's avatar
    karl committed
    
    
    		Route::get('/', 'StartpageController@loadStartPage');
    
    		Route::get('impressum', function()
    		{
    			return view('impressum')
    				->with('title', trans('titles.impressum'))
    				->with('css', 'impressum.css')
    				->with('navbarFocus', 'kontakt');
    		});
    
    		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');
    		});
    
    		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');
    		});
    
    		Route::post('kontakt', 'MailController@contactMail');
    
    Phil Höfer's avatar
    Phil Höfer committed
    		Route::get('tor', function()
    		{
    			return view('tor')
    				->with('title', 'tor hidden service - MetaGer')
    				->with('navbarFocus', 'dienste');
    		});
    
    		Route::get('spende', function()
    		{
    			return view('spende')
    				->with('title', trans('titles.spende'))
    				->with('css', 'donation.css')
    				->with('navbarFocus', 'foerdern');
    		});
    		
    		Route::post('spende', 'MailController@donation');
    
    		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
    
    
    		Route::get('hilfe', function()
    		{
    			return view('hilfe')
    				->with('title', trans('titles.hilfe'))
    				->with('css', 'help.css')
    				->with('navbarFocus', 'dienste');
    		});
    
    				->with('title', trans('titles.widget'))
    				->with('css', 'widget.css')
    				->with('navbarFocus', 'dienste');
    
    
            Route::get('sitesearch', 'SitesearchController@loadPage');
    
            Route::get('websearch', function()
            {
                return view('widget.websearch')
                    ->with('title', trans('titles.websearch'))
    
                    ->with('css', 'websearch.css')
                    ->with('navbarFocus', 'dienste');
    
    		});
    		
    		Route::get('settings', 'StartpageController@loadSettings');
    
    		
    		Route::get('meta/meta.ger3', 'MetaGerSearch@search');
    		Route::get('meta/picture', 'Pictureproxy@get');
    		Route::get('clickstats', 'LogController@clicklog');
    
    		Route::get('qt', 'MetaGerSearch@quicktips');
    		Route::get('tips', 'MetaGerSearch@tips');
    		Route::get('opensearch.xml', 'StartpageController@loadPlugin');
    	});