<?php

use App\Domains\Staff\Controllers\AdminAppStaffController;
use Illuminate\Support\Facades\Route;

Route::prefix('v1/adminapp/tenant')
    ->middleware(['auth:sanctum', 'adminapp.tenant'])
    ->group(function (): void {
        Route::get('staff', [AdminAppStaffController::class, 'index']);
        Route::post('staff', [AdminAppStaffController::class, 'store']);
        Route::put('staff/{staff}', [AdminAppStaffController::class, 'update']);
        Route::delete('staff/{staff}', [AdminAppStaffController::class, 'destroy']);
    });
