mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update web routes
This commit is contained in:
parent
ff860c9b85
commit
0f6d1ed150
1 changed files with 19 additions and 19 deletions
|
@ -15,7 +15,7 @@ Route::domain(config('pixelfed.domain.admin'))->prefix('i/admin')->group(functio
|
||||||
|
|
||||||
Route::domain(config('pixelfed.domain.app'))->middleware('validemail')->group(function () {
|
Route::domain(config('pixelfed.domain.app'))->middleware('validemail')->group(function () {
|
||||||
Route::get('/', 'SiteController@home')->name('timeline.personal');
|
Route::get('/', 'SiteController@home')->name('timeline.personal');
|
||||||
Route::post('/', 'StatusController@store');
|
Route::post('/', 'StatusController@store')->middleware('throttle:500,1440');
|
||||||
|
|
||||||
Auth::routes();
|
Auth::routes();
|
||||||
|
|
||||||
|
@ -51,23 +51,23 @@ Route::domain(config('pixelfed.domain.app'))->middleware('validemail')->group(fu
|
||||||
Route::redirect('/', '/');
|
Route::redirect('/', '/');
|
||||||
Route::get('compose', 'StatusController@compose')->name('compose');
|
Route::get('compose', 'StatusController@compose')->name('compose');
|
||||||
Route::get('remote-follow', 'FederationController@remoteFollow')->name('remotefollow');
|
Route::get('remote-follow', 'FederationController@remoteFollow')->name('remotefollow');
|
||||||
Route::post('remote-follow', 'FederationController@remoteFollowStore');
|
Route::post('remote-follow', 'FederationController@remoteFollowStore')->middleware('throttle:100,1440');
|
||||||
Route::post('comment', 'CommentController@store');
|
Route::post('comment', 'CommentController@store')->middleware('throttle:1000,1440');
|
||||||
Route::post('delete', 'StatusController@delete');
|
Route::post('delete', 'StatusController@delete')->middleware('throttle:1000,1440');
|
||||||
Route::post('mute', 'AccountController@mute');
|
Route::post('mute', 'AccountController@mute')->middleware('throttle:100,1440');
|
||||||
Route::post('block', 'AccountController@block');
|
Route::post('block', 'AccountController@block')->middleware('throttle:100,1440');
|
||||||
Route::post('like', 'LikeController@store');
|
Route::post('like', 'LikeController@store')->middleware('throttle:1000,1440');
|
||||||
Route::post('share', 'StatusController@storeShare');
|
Route::post('share', 'StatusController@storeShare')->middleware('throttle:1000,1440');
|
||||||
Route::post('follow', 'FollowerController@store');
|
Route::post('follow', 'FollowerController@store')->middleware('throttle:250,1440');
|
||||||
Route::post('bookmark', 'BookmarkController@store');
|
Route::post('bookmark', 'BookmarkController@store')->middleware('throttle:250,1440');
|
||||||
Route::get('lang/{locale}', 'SiteController@changeLocale');
|
Route::get('lang/{locale}', 'SiteController@changeLocale');
|
||||||
Route::get('verify-email', 'AccountController@verifyEmail');
|
Route::get('verify-email', 'AccountController@verifyEmail');
|
||||||
Route::post('verify-email', 'AccountController@sendVerifyEmail');
|
Route::post('verify-email', 'AccountController@sendVerifyEmail')->middleware('throttle:10,1440');
|
||||||
Route::get('confirm-email/{userToken}/{randomToken}', 'AccountController@confirmVerifyEmail');
|
Route::get('confirm-email/{userToken}/{randomToken}', 'AccountController@confirmVerifyEmail')->middleware('throttle:10,1440');
|
||||||
|
|
||||||
Route::group(['prefix' => 'report'], function () {
|
Route::group(['prefix' => 'report'], function () {
|
||||||
Route::get('/', 'ReportController@showForm')->name('report.form');
|
Route::get('/', 'ReportController@showForm')->name('report.form');
|
||||||
Route::post('/', 'ReportController@formStore');
|
Route::post('/', 'ReportController@formStore')->middleware('throttle:100,1440');
|
||||||
Route::get('not-interested', 'ReportController@notInterestedForm')->name('report.not-interested');
|
Route::get('not-interested', 'ReportController@notInterestedForm')->name('report.not-interested');
|
||||||
Route::get('spam', 'ReportController@spamForm')->name('report.spam');
|
Route::get('spam', 'ReportController@spamForm')->name('report.spam');
|
||||||
Route::get('spam/comment', 'ReportController@spamCommentForm')->name('report.spam.comment');
|
Route::get('spam/comment', 'ReportController@spamCommentForm')->name('report.spam.comment');
|
||||||
|
@ -90,19 +90,19 @@ Route::domain(config('pixelfed.domain.app'))->middleware('validemail')->group(fu
|
||||||
Route::group(['prefix' => 'settings'], function () {
|
Route::group(['prefix' => 'settings'], function () {
|
||||||
Route::redirect('/', '/settings/home');
|
Route::redirect('/', '/settings/home');
|
||||||
Route::get('home', 'SettingsController@home')->name('settings');
|
Route::get('home', 'SettingsController@home')->name('settings');
|
||||||
Route::post('home', 'SettingsController@homeUpdate');
|
Route::post('home', 'SettingsController@homeUpdate')->middleware('throttle:25,1440');
|
||||||
Route::get('avatar', 'SettingsController@avatar')->name('settings.avatar');
|
Route::get('avatar', 'SettingsController@avatar')->name('settings.avatar');
|
||||||
Route::post('avatar', 'AvatarController@store');
|
Route::post('avatar', 'AvatarController@store')->middleware('throttle:5,1440');
|
||||||
Route::get('password', 'SettingsController@password')->name('settings.password');
|
Route::get('password', 'SettingsController@password')->name('settings.password');
|
||||||
Route::post('password', 'SettingsController@passwordUpdate');
|
Route::post('password', 'SettingsController@passwordUpdate')->middleware('throttle:2,1440');
|
||||||
Route::get('email', 'SettingsController@email')->name('settings.email');
|
Route::get('email', 'SettingsController@email')->name('settings.email');
|
||||||
Route::get('notifications', 'SettingsController@notifications')->name('settings.notifications');
|
Route::get('notifications', 'SettingsController@notifications')->name('settings.notifications');
|
||||||
Route::get('privacy', 'SettingsController@privacy')->name('settings.privacy');
|
Route::get('privacy', 'SettingsController@privacy')->name('settings.privacy');
|
||||||
Route::post('privacy', 'SettingsController@privacyStore');
|
Route::post('privacy', 'SettingsController@privacyStore')->middleware('throttle:25,1440');
|
||||||
Route::get('privacy/muted-users', 'SettingsController@mutedUsers')->name('settings.privacy.muted-users');
|
Route::get('privacy/muted-users', 'SettingsController@mutedUsers')->name('settings.privacy.muted-users');
|
||||||
Route::post('privacy/muted-users', 'SettingsController@mutedUsersUpdate');
|
Route::post('privacy/muted-users', 'SettingsController@mutedUsersUpdate')->middleware('throttle:100,1440');
|
||||||
Route::get('privacy/blocked-users', 'SettingsController@blockedUsers')->name('settings.privacy.blocked-users');
|
Route::get('privacy/blocked-users', 'SettingsController@blockedUsers')->name('settings.privacy.blocked-users');
|
||||||
Route::post('privacy/blocked-users', 'SettingsController@blockedUsersUpdate');
|
Route::post('privacy/blocked-users', 'SettingsController@blockedUsersUpdate')->middleware('throttle:100,1440');
|
||||||
Route::get('privacy/blocked-instances', 'SettingsController@blockedInstances')->name('settings.privacy.blocked-instances');
|
Route::get('privacy/blocked-instances', 'SettingsController@blockedInstances')->name('settings.privacy.blocked-instances');
|
||||||
Route::get('security', 'SettingsController@security')->name('settings.security');
|
Route::get('security', 'SettingsController@security')->name('settings.security');
|
||||||
Route::get('applications', 'SettingsController@applications')->name('settings.applications');
|
Route::get('applications', 'SettingsController@applications')->name('settings.applications');
|
||||||
|
|
Loading…
Reference in a new issue