1
0
Fork 0
forked from mirror/pixelfed

Update api routes

This commit is contained in:
Daniel Supernault 2021-01-17 14:00:26 -07:00
parent 07f419d5cb
commit 1450f54f65
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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) {