applicant-site/routes/admin.php

23 lines
956 B
PHP
Raw Normal View History

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;
Route::middleware(['auth', 'verified'])->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');
Route::resources([
'/files' => FileController::class,
'/users' => UserController::class,
'/admin-reception-screen' => ReceptionScreenController::class,
'/educational-institutions' => EducationalInstitutionController::class,
'/faculties' => FacultyController::class,
2024-02-08 15:59:44 +03:00
'/departments' => DepartmentController::class,
2024-02-07 16:32:42 +03:00
]);
});