Update web routes

This commit is contained in:
Daniel Supernault 2018-11-08 18:32:08 -07:00
parent b1be74efc4
commit 0e9d13ea99
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -24,8 +24,9 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
Auth::routes();
Route::get('.well-known/webfinger', 'FederationController@webfinger');
Route::get('.well-known/nodeinfo', 'FederationController@nodeinfoWellKnown');
Route::get('.well-known/webfinger', 'FederationController@webfinger')->name('well-known.webfinger');
Route::get('.well-known/nodeinfo', 'FederationController@nodeinfoWellKnown')->name('well-known.nodeinfo');
Route::get('.well-known/host-meta', 'FederationController@hostMeta')->name('well-known.hostMeta');
Route::get('/home', 'HomeController@index')->name('home');
@ -41,6 +42,10 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
Route::get('likes', 'ApiController@hydrateLikes');
Route::post('media', 'ApiController@uploadMedia')->middleware('throttle:250,1440');
});
Route::group(['prefix' => 'v2'], function() {
Route::get('profile/{username}/status/{postid}', 'InternalApiController@status');
Route::get('comments/{username}/status/{postId}', 'InternalApiController@statusComments');
});
Route::group(['prefix' => 'local'], function () {
Route::get('i/follow-suggestions', 'ApiController@followSuggestions');
Route::post('i/more-comments', 'ApiController@loadMoreComments');
@ -196,6 +201,8 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
Route::get('{user}.atom', 'ProfileController@showAtomFeed');
Route::get('{username}/outbox', 'FederationController@userOutbox');
Route::get('{username}', 'ProfileController@permalinkRedirect');
Route::get('{username}/followers', 'FederationController@userFollowers');
Route::get('{username}/following', 'FederationController@userFollowing');
});
Route::get('p/{username}/{id}/c/{cid}', 'CommentController@show');