Roman_applicant-site/routes/admin.php

24 lines
1.0 KiB
PHP

<?php
use App\Http\Controllers\Catalog\DepartmentController;
use App\Http\Controllers\Catalog\EducationalInstitutionController;
use App\Http\Controllers\Catalog\FacultyController;
use App\Http\Controllers\FileController;
use App\Http\Controllers\ReceptionScreenController;
use App\Http\Controllers\UserController;
Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
Route::get('/files/create/{file?}', [FileController::class, 'create'])->name('files_create');
Route::get('/files/download/{file}', [FileController::class, 'download'])->name('files.download');
Route::resource('/educational-institutions', EducationalInstitutionController::class)
->scoped(['educational_institution' => 'slug']);
Route::resources([
'/files' => FileController::class,
'/users' => UserController::class,
'/admin-reception-screen' => ReceptionScreenController::class,
'/faculties' => FacultyController::class,
'/departments' => DepartmentController::class,
]);
});