Update web routes

This commit is contained in:
Daniel Supernault 2020-01-07 00:52:13 -07:00
parent 38f8c9fd91
commit e6419297f3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -179,6 +179,7 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
Route::post('moderate', 'Api\AdminApiController@moderate');
});
Route::group(['prefix' => 'stories'], function () {
Route::get('v1/recent', 'StoryController@apiV1Recent');
Route::post('v1/add', 'StoryController@apiV1Add')->middleware('throttle:maxStoriesPerDay,1440');
Route::get('v1/fetch/{id}', 'StoryController@apiV1Fetch');
Route::get('v1/profile/{id}', 'StoryController@apiV1Profile');