2024-02-07 16:32:42 +03:00
|
|
|
<?php
|
|
|
|
|
2024-02-08 15:59:44 +03:00
|
|
|
use App\Http\Controllers\Catalog\DepartmentController;
|
|
|
|
use App\Http\Controllers\Catalog\EducationalInstitutionController;
|
|
|
|
use App\Http\Controllers\Catalog\FacultyController;
|
2024-02-07 16:32:42 +03:00
|
|
|
use App\Http\Controllers\FileController;
|
|
|
|
use App\Http\Controllers\ReceptionScreenController;
|
|
|
|
use App\Http\Controllers\UserController;
|
|
|
|
|
2024-02-08 18:34:45 +03:00
|
|
|
Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
|
2024-02-08 15:59:44 +03:00
|
|
|
Route::get('/files/create/{file?}', [FileController::class, 'create'])->name('files_create');
|
2024-02-07 16:32:42 +03:00
|
|
|
Route::get('/files/download/{file}', [FileController::class, 'download'])->name('files.download');
|
|
|
|
|
2024-02-08 18:34:45 +03:00
|
|
|
Route::resource('/educational-institutions', EducationalInstitutionController::class)
|
|
|
|
->scoped(['educational_institution' => 'slug']);
|
2024-02-07 16:32:42 +03:00
|
|
|
Route::resources([
|
|
|
|
'/files' => FileController::class,
|
|
|
|
'/users' => UserController::class,
|
|
|
|
'/admin-reception-screen' => ReceptionScreenController::class,
|
|
|
|
'/faculties' => FacultyController::class,
|
2024-02-08 15:59:44 +03:00
|
|
|
'/departments' => DepartmentController::class,
|
2024-02-07 16:32:42 +03:00
|
|
|
]);
|
|
|
|
});
|