feat: SuperAdmin server-access kill switch gate
Add /super/settings endpoints and API middleware that returns generic 503 while keeping unlock routes whitelisted. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -15,6 +15,7 @@ use App\Services\ConfigService;
|
||||
use App\Http\Controllers\Customer\CartController;
|
||||
use App\Http\Controllers\Admin\CategoryController;
|
||||
use App\Http\Controllers\Chat\SupportChatNotifyController;
|
||||
use App\Http\Controllers\Super\SuperSettingsController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -27,6 +28,10 @@ use App\Http\Controllers\Chat\SupportChatNotifyController;
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware('superadmin.remote')->group(function () {
|
||||
Route::get('/super/settings', [SuperSettingsController::class, 'show']);
|
||||
Route::post('/super/settings', [SuperSettingsController::class, 'update']);
|
||||
});
|
||||
|
||||
Route::get('/candle',[ReportController::class, 'candleChart']);
|
||||
Route::get('/price/up',[ReportController::class, 'upDownPrice']);
|
||||
|
||||
Reference in New Issue
Block a user