mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update api routes
This commit is contained in:
parent
2a92422d02
commit
79976a3f81
1 changed files with 4 additions and 2 deletions
|
@ -100,6 +100,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::group(['prefix' => 'v1.1'], function() use($middleware) {
|
Route::group(['prefix' => 'v1.1'], function() use($middleware) {
|
||||||
Route::post('report', 'Api\ApiV1Dot1Controller@report')->middleware($middleware);
|
Route::post('report', 'Api\ApiV1Dot1Controller@report')->middleware($middleware);
|
||||||
Route::delete('accounts/avatar', 'Api\ApiV1Dot1Controller@deleteAvatar')->middleware($middleware);
|
Route::delete('accounts/avatar', 'Api\ApiV1Dot1Controller@deleteAvatar')->middleware($middleware);
|
||||||
|
Route::get('accounts/{id}/posts', 'Api\ApiV1Dot1Controller@accountPosts')->middleware($middleware);
|
||||||
|
|
||||||
Route::group(['prefix' => 'direct'], function () use($middleware) {
|
Route::group(['prefix' => 'direct'], function () use($middleware) {
|
||||||
Route::get('thread', 'DirectMessageController@thread')->middleware($middleware);
|
Route::get('thread', 'DirectMessageController@thread')->middleware($middleware);
|
||||||
|
@ -116,8 +117,9 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::get('recent', 'StoryController@recent')->middleware($middleware);
|
Route::get('recent', 'StoryController@recent')->middleware($middleware);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'compose/v0'], function () use($middleware) {
|
Route::group(['prefix' => 'compose'], function () use($middleware) {
|
||||||
Route::get('/search/location', 'ComposeController@searchLocation')->middleware($middleware);
|
Route::get('search/location', 'ComposeController@searchLocation')->middleware($middleware);
|
||||||
|
Route::get('settings', 'ComposeController@composeSettings')->middleware($middleware);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'discover'], function () use($middleware) {
|
Route::group(['prefix' => 'discover'], function () use($middleware) {
|
||||||
|
|
Loading…
Reference in a new issue