mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update web routes
This commit is contained in:
parent
7d30a29227
commit
44f5ce7220
1 changed files with 4 additions and 1 deletions
|
@ -59,8 +59,10 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
|
||||||
|
|
||||||
Route::get('/home', 'HomeController@index')->name('home');
|
Route::get('/home', 'HomeController@index')->name('home');
|
||||||
|
|
||||||
|
Route::get('discover/c/{slug}', 'DiscoverController@showCategory');
|
||||||
|
Route::get('discover/personal', 'DiscoverController@showPersonal');
|
||||||
Route::get('discover', 'DiscoverController@home')->name('discover');
|
Route::get('discover', 'DiscoverController@home')->name('discover');
|
||||||
|
|
||||||
Route::group(['prefix' => 'api'], function () {
|
Route::group(['prefix' => 'api'], function () {
|
||||||
Route::get('search/{tag}', 'SearchController@searchAPI')
|
Route::get('search/{tag}', 'SearchController@searchAPI')
|
||||||
//->where('tag', '.*');
|
//->where('tag', '.*');
|
||||||
|
@ -91,6 +93,7 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
|
||||||
Route::get('shares/profile/{username}/status/{id}', 'PublicApiController@statusShares');
|
Route::get('shares/profile/{username}/status/{id}', 'PublicApiController@statusShares');
|
||||||
Route::get('status/{id}/replies', 'InternalApiController@statusReplies');
|
Route::get('status/{id}/replies', 'InternalApiController@statusReplies');
|
||||||
Route::post('moderator/action', 'InternalApiController@modAction');
|
Route::post('moderator/action', 'InternalApiController@modAction');
|
||||||
|
Route::get('discover/categories', 'InternalApiController@discoverCategories');
|
||||||
});
|
});
|
||||||
Route::group(['prefix' => 'local'], function () {
|
Route::group(['prefix' => 'local'], function () {
|
||||||
Route::get('i/follow-suggestions', 'ApiController@followSuggestions');
|
Route::get('i/follow-suggestions', 'ApiController@followSuggestions');
|
||||||
|
|
Loading…
Reference in a new issue