mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update api routes
This commit is contained in:
parent
951b6fa094
commit
9dc2234bac
1 changed files with 15 additions and 1 deletions
|
@ -4,4 +4,18 @@ use Illuminate\Http\Request;
|
||||||
|
|
||||||
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
|
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
|
||||||
|
|
||||||
Route::post('/api/v1/apps', 'Api\ApiV1Controller@apps');
|
|
||||||
|
Route::group(['prefix' => 'api'], function() {
|
||||||
|
Route::group(['prefix' => 'v1'], function() {
|
||||||
|
Route::post('apps', 'Api\ApiV1Controller@apps');
|
||||||
|
|
||||||
|
Route::get('accounts/verify_credentials', 'ApiController@verifyCredentials');
|
||||||
|
Route::get('accounts/relationships', 'PublicApiController@relationships');
|
||||||
|
Route::get('accounts/{id}/statuses', 'PublicApiController@accountStatuses');
|
||||||
|
Route::get('accounts/{id}/following', 'PublicApiController@accountFollowing');
|
||||||
|
Route::get('accounts/{id}/followers', 'PublicApiController@accountFollowers');
|
||||||
|
Route::get('accounts/{id}', 'Api\ApiV1Controller@accountById');
|
||||||
|
|
||||||
|
Route::get('instance', 'Api\ApiV1Controller@instance');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue