Browse Source

Update API routes

Daniel Supernault 6 năm trước cách đây
mục cha
commit
ed8e3ba014
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      routes/api.php

+ 4 - 0
routes/api.php

@@ -14,3 +14,7 @@ use Illuminate\Http\Request;
 */
 Route::post('/users/{username}/inbox', 'FederationController@userInbox');
 
+Route::group(['prefix' => 'api/v2'], function() {
+    Route::get('profile/{username}/status/{postid}', 'PublicApiController@status');
+    Route::get('comments/{username}/status/{postId}', 'PublicApiController@statusComments');
+});