<?php

use Illuminate\Support\Facades\Route;
use App\Modules\SuperAdmin\Http\Controllers\SuperAdminController;

Route::prefix('superadmin')->group(function () {
    Route::get('/', [SuperAdminController::class, 'index']);          // list all superadmin functions
    Route::post('/assign-role', [SuperAdminController::class, 'assignRole']); // assign role
    Route::post('/revoke-role', [SuperAdminController::class, 'revokeRole']); // revoke role
    Route::get('/test', [SuperAdminController::class, 'test']);      // test route
});
