cookie.php 1.85 KB
Newer Older
1
2
3
4
5
6
7
8
<?php

Route::group(
    [
        'prefix' => LaravelLocalization::setLocale(), /*,
    'middleware' => [ 'localeSessionRedirect', 'localizationRedirect' ]*/
    ],
    function () {
Dominik Hebeler's avatar
Dominik Hebeler committed
9
        Route::get('meta/key', "KeyController@index")->middleware('removekey');
10
        Route::post('meta/key', 'KeyController@setKey');
11
        Route::any('meta/key/remove', 'KeyController@removeKey')->name("removeCookie");
12

Dominik Hebeler's avatar
Dominik Hebeler committed
13
14
15
16
17
18
19
20
        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');
21
                Route::post('es', 'SettingsController@enableSetting')->name('enableSetting');
Dominik Hebeler's avatar
Dominik Hebeler committed
22
                Route::post('ds', 'SettingsController@deleteSettings')->name('deleteSettings');
23
24
                Route::post('nb', 'SettingsController@newBlacklist')->name('newBlacklist');
                Route::post('db', 'SettingsController@deleteBlacklist')->name('deleteBlacklist');
Davide's avatar
Davide committed
25
                Route::post('cb', 'SettingsController@clearBlacklist')->name('clearBlacklist');
26
27
28

                # Route to show and delete all settings
                Route::get('all-settings', 'SettingsController@allSettingsIndex')->name('showAllSettings');
29
30
                Route::post('all-settings/removeOne', 'SettingsController@removeOneSetting')->name('removeOneSetting');
                Route::post('all-settings/removeAll', 'SettingsController@removeAllSettings')->name('removeAllSettings');
31
                Route::get('load-settings', 'SettingsController@loadSettings')->name('loadSettings');
Dominik Hebeler's avatar
Dominik Hebeler committed
32
            });
33
34
    }
);