mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update api routes
This commit is contained in:
parent
07f419d5cb
commit
1450f54f65
1 changed files with 4 additions and 1 deletions
|
@ -2,10 +2,13 @@
|
|||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
$middleware = ['auth:api','twofactor','validemail','localization', 'throttle:60,1'];
|
||||
$middleware = ['auth:api','twofactor','validemail','throttle:60,1','interstitial'];
|
||||
|
||||
Route::post('/f/inbox', 'FederationController@sharedInbox');
|
||||
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
|
||||
Route::get('i/actor', 'InstanceActorController@profile');
|
||||
Route::post('i/actor/inbox', 'InstanceActorController@inbox');
|
||||
Route::get('i/actor/outbox', 'InstanceActorController@outbox');
|
||||
|
||||
Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue