1
0
Fork 0
forked from mirror/pixelfed
pixelfed/routes/api.php

22 lines
791 B
PHP
Raw Normal View History

2018-04-15 23:56:48 +00:00
<?php
use Illuminate\Http\Request;
2018-12-24 02:42:04 +00:00
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
2019-09-14 01:53:58 +00:00
2019-09-21 03:25:02 +00:00
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');
});
});