cookie.php 1.33 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
<?php

Route::group(
    [
        'prefix' => LaravelLocalization::setLocale(), /*,
    'middleware' => [ 'localeSessionRedirect', 'localizationRedirect' ]*/
    ],
    function () {
        Route::get('meta/key', "KeyController@index");
        Route::post('meta/key', 'KeyController@setKey');
        Route::post('meta/key/remove', 'KeyController@removeKey');
12

Dominik Hebeler's avatar
Dominik Hebeler committed
13 14 15 16 17 18 19 20 21
        Route::group([
            'prefix' => 'meta/settings',
        ],
            function () {
                Route::get('/', 'SettingsController@index')->name('settings');
                Route::post('de', 'SettingsController@disableSearchEngine')->name('disableEngine');
                Route::post('ee', 'SettingsController@enableSearchEngine')->name('enableEngine');
                Route::post('ef', 'SettingsController@enableFilter')->name('enableFilter');
                Route::post('ds', 'SettingsController@deleteSettings')->name('deleteSettings');
22 23 24

                # Route to show and delete all settings
                Route::get('all-settings', 'SettingsController@allSettingsIndex')->name('showAllSettings');
25 26 27
                Route::post('all-settings/removeOne', 'SettingsController@removeOneSetting')->name('removeOneSetting');
                Route::post('all-settings/removeAll', 'SettingsController@removeAllSettings')->name('removeAllSettings');

Dominik Hebeler's avatar
Dominik Hebeler committed
28
            });
29 30
    }
);