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
16f2758808
commit
cbd755082e
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
$middleware = ['auth:api','twofactor','validemail'];
|
$middleware = ['auth:api','validemail'];
|
||||||
|
|
||||||
Route::post('/f/inbox', 'FederationController@sharedInbox');
|
Route::post('/f/inbox', 'FederationController@sharedInbox');
|
||||||
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
|
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
|
||||||
|
@ -77,7 +77,6 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::get('statuses/{id}', 'Api\ApiV1Controller@statusById')->middleware($middleware);
|
Route::get('statuses/{id}', 'Api\ApiV1Controller@statusById')->middleware($middleware);
|
||||||
Route::post('statuses', 'Api\ApiV1Controller@statusCreate')->middleware($middleware);
|
Route::post('statuses', 'Api\ApiV1Controller@statusCreate')->middleware($middleware);
|
||||||
|
|
||||||
|
|
||||||
Route::get('timelines/home', 'Api\ApiV1Controller@timelineHome')->middleware($middleware);
|
Route::get('timelines/home', 'Api\ApiV1Controller@timelineHome')->middleware($middleware);
|
||||||
Route::get('timelines/public', 'Api\ApiV1Controller@timelinePublic')->middleware($middleware);
|
Route::get('timelines/public', 'Api\ApiV1Controller@timelinePublic')->middleware($middleware);
|
||||||
Route::get('timelines/tag/{hashtag}', 'Api\ApiV1Controller@timelineHashtag');
|
Route::get('timelines/tag/{hashtag}', 'Api\ApiV1Controller@timelineHashtag');
|
||||||
|
|
Loading…
Reference in a new issue