wip(ISP config connections and command)
This commit is contained in:
@@ -17,6 +17,27 @@ Route::middleware(['auth', 'verified'])->group(function () {
|
||||
})->name('dashboard');
|
||||
});
|
||||
|
||||
// TEST
|
||||
|
||||
Route::get('/test/sync-ispconfig', function () {
|
||||
|
||||
if (!app()->isLocal()) {
|
||||
abort(403);
|
||||
}
|
||||
|
||||
Artisan::call('sync:ispconfig-members');
|
||||
|
||||
return response()->json([
|
||||
'status' => 'ok',
|
||||
'output' => Artisan::output(),
|
||||
]);
|
||||
});
|
||||
|
||||
Route::get('/test/isp-mails', function() {
|
||||
$ispService = new \App\Services\ISPConfig\ISPConfigMailService;
|
||||
|
||||
return $ispService->getAllMailDomains();
|
||||
});
|
||||
|
||||
require __DIR__.'/settings.php';
|
||||
require __DIR__.'/auth.php';
|
||||
|
||||
Reference in New Issue
Block a user