Move global admin controllers from Admin to SuperAdmin namespace

Backup, Update, Modules, and global Settings controllers (mail config,
PDF config, disk management, global settings) are application-wide features
not scoped to a company. Move them from Admin/ to SuperAdmin/ to match the
v3.0 UI structure where these live under Administration.

Company-scoped settings controllers remain in Admin/Settings/.
This commit is contained in:
Darko Gjorgjijoski
2026-04-03 16:52:18 +02:00
parent de06c335ac
commit bbf46577dc
27 changed files with 50 additions and 50 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Controllers\V1\SuperAdmin\Modules;
use App\Http\Controllers\Controller;
use App\Http\Requests\UnzipUpdateRequest;
use App\Services\Module\ModuleInstaller;
use Illuminate\Http\Response;
class UnzipModuleController extends Controller
{
/**
* Handle the incoming request.
*
* @return Response
*/
public function __invoke(UnzipUpdateRequest $request)
{
$this->authorize('manage modules');
$path = ModuleInstaller::unzip($request->module, $request->path);
return response()->json([
'success' => true,
'path' => $path,
]);
}
}