Add localization middleware to web routes

This commit is contained in:
Daniel Supernault 2018-11-17 14:34:29 -07:00
parent d8ad6ddccb
commit 2095712ca5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -18,7 +18,7 @@ Route::domain(config('pixelfed.domain.admin'))->prefix('i/admin')->group(functio
Route::get('media/list', 'AdminController@media')->name('admin.media'); Route::get('media/list', 'AdminController@media')->name('admin.media');
}); });
Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofactor'])->group(function () { Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofactor', 'localization'])->group(function () {
Route::get('/', 'SiteController@home')->name('timeline.personal'); Route::get('/', 'SiteController@home')->name('timeline.personal');
Route::post('/', 'StatusController@store')->middleware('throttle:500,1440'); Route::post('/', 'StatusController@store')->middleware('throttle:500,1440');