1
0
Daniel Supernault 1 жил өмнө
parent
commit
7bef60d64a
1 өөрчлөгдсөн 26 нэмэгдсэн , 0 устгасан
  1. 26 0
      routes/web.php

+ 26 - 0
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::get('auth/invite/a/{code}', 'AdminInviteController@index');
     Route::post('api/v1.1/auth/invite/admin/re', 'AdminInviteController@apiRegister')->middleware('throttle:5,1440');
     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('storage/m/_v2/{pid}/{mhash}/{uhash}/{f}', 'MediaController@fallbackRedirect');
     Route::get('stories/{username}', 'ProfileController@stories');
     Route::get('stories/{username}', 'ProfileController@stories');
     Route::get('p/{id}', 'StatusController@shortcodeRedirect');
     Route::get('p/{id}', 'StatusController@shortcodeRedirect');