Skip to content
Snippets Groups Projects
routes.php 3.5 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' ]*/
    
            /** 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');
    
    Dominik Hebeler's avatar
    Dominik Hebeler committed
            Route::get('team', function()
            {
    
                return view('team.team')
    
                    ->with('title', trans('titles.team'))
    
                    ->with('css', 'team.css')
                    ->with('navbarFocus', 'kontakt');
    
    Dominik Hebeler's avatar
    Dominik Hebeler committed
            });
            Route::get('team/pubkey-wsb', function()
            {
    
                return view('team.pubkey-wsb')
    
                    ->with('title', trans('titles.team'))
                    ->with('navbarFocus', 'kontakt');
    
    Dominik Hebeler's avatar
    Dominik Hebeler committed
            });
    
    
            Route::get('kontakt', function()
            {
                return view('kontakt.kontakt')
    
                    ->with('title', trans('titles.kontakt'))
    
                    ->with('js', ['openpgp.min.js','kontakt.js'])
                    ->with('navbarFocus', 'kontakt');
    
            Route::post('kontakt', 'MailController@contactMail');
    
    
            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');
    
            Route::get('widget', function()
            {
                return view('widget')
                    ->with('title', trans('titles.widget'))
    
                    ->with('css', 'widget.css')
                    ->with('navbarFocus', 'dienste');
    
    karl's avatar
    karl committed
            
    
            Route::get('settings', 'StartpageController@loadSettings');
    
            Route::get('meta/meta.ger3', 'MetaGerSearch@search');
    
            Route::get('meta/picture', 'Pictureproxy@get');
    
    Dominik Hebeler's avatar
    Dominik Hebeler committed
            Route::get('clickstats', 'LogController@clicklog');
    
    
            Route::get('qt', 'MetaGerSearch@quicktips');
    
            Route::get('tips', 'MetaGerSearch@tips');
    
            Route::get('opensearch.xml', 'StartpageController@loadPlugin');