mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update LiveStreamController, remove auth middleware from config endpoint
This commit is contained in:
parent
4bd9e12f00
commit
feb969b908
2 changed files with 2 additions and 5 deletions
|
@ -336,11 +336,8 @@ class LiveStreamController extends Controller
|
|||
|
||||
public function getConfig(Request $request)
|
||||
{
|
||||
abort_if(!config('livestreaming.enabled'), 400);
|
||||
abort_if(!$request->user(), 403);
|
||||
|
||||
$res = [
|
||||
'enabled' => config('livestreaming.enabled'),
|
||||
'enabled' => (bool) config('livestreaming.enabled'),
|
||||
'broadcast' => [
|
||||
'sources' => config('livestreaming.broadcast.sources'),
|
||||
'limits' => config('livestreaming.broadcast.limits')
|
||||
|
|
|
@ -110,7 +110,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
|||
Route::post('chat/ban-user', 'LiveStreamController@banChatUser')->middleware($middleware);
|
||||
Route::post('chat/pin', 'LiveStreamController@pinChatComment')->middleware($middleware);
|
||||
Route::post('chat/unpin', 'LiveStreamController@unpinChatComment')->middleware($middleware);
|
||||
Route::get('config', 'LiveStreamController@getConfig')->middleware($middleware);
|
||||
Route::get('config', 'LiveStreamController@getConfig');
|
||||
Route::post('broadcast/publish', 'LiveStreamController@clientBroadcastPublish');
|
||||
Route::post('broadcast/finish', 'LiveStreamController@clientBroadcastFinish');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue