mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 13:03:16 +00:00
Add Group web routes
This commit is contained in:
parent
d6b6145186
commit
7bef60d64a
1 changed files with 26 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue