Add Group web routes

This commit is contained in:
Daniel Supernault 2024-07-09 23:54:36 -06:00
parent d6b6145186
commit 7bef60d64a
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -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');