diff --git a/routes/web.php b/routes/web.php index 6768ddb1b..00e9e201a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -354,6 +354,32 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::get('auth/invite/a/{code}', 'AdminInviteController@index'); Route::post('api/v1.1/auth/invite/admin/re', 'AdminInviteController@apiRegister')->middleware('throttle:5,1440'); + Route::redirect('groups/', '/groups/home'); + Route::redirect('groups/home', '/groups/feed'); + + Route::prefix('groups')->group(function() { + // Route::get('feed', 'GroupController@index'); + Route::get('{id}/invite/claim', 'GroupController@groupInviteClaim'); + Route::get('{id}/invite', 'GroupController@groupInviteLanding'); + Route::get('{id}/settings', 'GroupController@groupSettings'); + Route::get('{gid}/topics/{topic}', 'Groups\GroupsTopicController@showTopicFeed'); + Route::get('{gid}/p/{sid}.json', 'GroupController@getStatusObject'); + Route::get('{gid}/p/{sid}', 'GroupController@showStatus'); + Route::get('{id}/user/{pid}', 'GroupController@showProfile'); + Route::get('{id}/un/{pid}', 'GroupController@showProfile'); + Route::get('{id}/username/{pid}', 'GroupController@showProfileByUsername'); + Route::get('{id}/{path}', 'GroupController@show'); + Route::get('{id}.json', 'GroupController@getGroupObject'); + Route::get('feed', 'GroupController@index'); + Route::get('create', 'GroupController@index'); + Route::get('discover', 'GroupController@index'); + Route::get('search', 'GroupController@index'); + Route::get('joins', 'GroupController@index'); + Route::get('notifications', 'GroupController@index'); + Route::get('{id}', 'GroupController@show'); + }); + Route::get('g/{hid}', 'GroupController@groupShortLinkRedirect'); + Route::get('storage/m/_v2/{pid}/{mhash}/{uhash}/{f}', 'MediaController@fallbackRedirect'); Route::get('stories/{username}', 'ProfileController@stories'); Route::get('p/{id}', 'StatusController@shortcodeRedirect');