<?php

use App\Http\Controllers\CampusController;
use Illuminate\Support\Facades\Route;

Route::prefix('/campus')->group(function () {
    Route::get('/index', [CampusController::class, 'index'])->name('campus_index');
    Route::get('/create', [CampusController::class, 'create'])->name('campus_create');
    Route::post('/store', [CampusController::class, 'store'])->name('campus_store');
    Route::get('/edit/{id}', [CampusController::class, 'edit'])->name('campus_edit');
    Route::post('/update/{id}', [CampusController::class, 'update'])->name('campus_update');
    Route::delete('/delete/{id}', [CampusController::class, 'delete'])->name('campus_delete');
    Route::get('/search', [CampusController::class, 'actionSearch'])->name('campus_search');
});
