refactoring routes
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Failing after 1m33s Details
Tests & Lint & Deploy to Railway / deploy (push) Has been skipped Details

This commit is contained in:
aslan 2024-02-12 14:52:55 +03:00
parent f391a26b7d
commit 173a744f79
3 changed files with 5 additions and 4 deletions

View File

@ -16,18 +16,19 @@ Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
Route::get('/documents/create/{document?}', [DocumentController::class, 'create'])->name('documents_create');
Route::get('/documents/download/{Document}', [DocumentController::class, 'download'])->name('documents_download');
Route::resource('/educational-institutions', EducationalInstitutionController::class)
Route::resource('/educational_institutions', EducationalInstitutionController::class)
->scoped(['educational_institution' => 'slug']);
Route::resource('/directions', DirectionController::class)
->scoped(['directions' => 'slug']);
Route::resource('/departments', DepartmentController::class)
->scoped(['department' => 'slug']);
Route::resource('/faculties', FacultyController::class)
->scoped(['faculty' => 'slug']);
Route::resources([
'/documents' => DocumentController::class,
'/users' => UserController::class,
'/admin-reception-screen' => ReceptionScreenController::class,
'/faculties' => FacultyController::class,
]);
});

View File

@ -1,6 +1,6 @@
<?php
use App\Http\Controllers\PageController;
use App\Http\Controllers\admin\PageController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {

View File

@ -11,4 +11,4 @@ Route::middleware('auth')->group(function () {
require __DIR__ . '/auth.php';
require __DIR__ . '/admin.php';
require __DIR__ . '/pages/web.php';
require __DIR__ . '/pages.php';