mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Added optional authentication
This commit is contained in:
@@ -13,6 +13,13 @@ use Illuminate\Support\Collection;
|
||||
|
||||
class SettingsController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
if((bool)SettingsHelper::get('auth')->value === true) {
|
||||
$this->middleware('auth:api')
|
||||
->except([ 'config' ]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all settings
|
||||
|
||||
Reference in New Issue
Block a user