Changes
This commit is contained in:
+13
-8
@@ -23,6 +23,7 @@ use App\Http\Controllers\ScheduleController;
|
||||
use App\Http\Controllers\StudentController;
|
||||
use App\Http\Controllers\UpdateEduDataApiController;
|
||||
use App\Http\Controllers\UpdateViconDataApi;
|
||||
use App\Http\Controllers\VkPostController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
@@ -44,7 +45,7 @@ Route::middleware('access-check')->group(function () {
|
||||
Route::get('/schedule/{id}', [ClientScheduleController::class, 'show'])->name('client.schedule.show');
|
||||
|
||||
Route::get('/persons/{id}', [PersonController::class, 'show'])->name('client.person.show');
|
||||
Route::get('/students/{student}', [StudentController::class, 'show'])->name('client.student.show')->middleware('auth');
|
||||
// Route::get('/students/{student}', [StudentController::class, 'show'])->name('client.student.show')->middleware('auth');
|
||||
|
||||
// Новости
|
||||
Route::get('/news', [ClientPostController::class, 'index'])->name('client.post.index');
|
||||
@@ -54,7 +55,7 @@ Route::middleware('access-check')->group(function () {
|
||||
// Route::get('/programs/{slug}', [ClientProgramController::class, 'index'])->name('client.program.index');
|
||||
|
||||
Route::get('/programs/', [ClientProgramController::class, 'index'])->name('client.program.index');
|
||||
Route::get('/program/{educationalProgram}', [ClientProgramController::class, 'show'])->name('client.program.show');
|
||||
Route::get('/program/{slug}', [ClientProgramController::class, 'show'])->name('client.program.show');
|
||||
|
||||
// Route::get('/programs/bakalavriat/', [ClientProgramController::class, 'bakalavriat'])->name('client.program.bakalavriat');
|
||||
// Route::get('/programs/spo/', [ClientProgramController::class, 'spo'])->name('client.program.spo');
|
||||
@@ -62,28 +63,28 @@ Route::middleware('access-check')->group(function () {
|
||||
|
||||
// Образовательные программы
|
||||
Route::get('/additional-education/', [ClientAdditionalEducationController::class, 'index'])->name('client.additionalEducation.index');
|
||||
Route::get('/additional-education/{id}', [ClientAdditionalEducationController::class, 'show'])->name('client.additionalEducation.show');
|
||||
Route::get('/additional-education/{slug}', [ClientAdditionalEducationController::class, 'show'])->name('client.additionalEducation.show');
|
||||
|
||||
// События
|
||||
Route::get('/events', [ClientEventController::class, 'index'])->name('client.event.index');
|
||||
Route::get('/events', [ClientEventController::class, 'index'])->name('client.event.index'); // Доделать builder
|
||||
Route::get('/events/{id}', [ClientEventController::class, 'show'])->name('client.event.show');
|
||||
|
||||
// Заметки библиотеки
|
||||
Route::get('/library/news', [ClientLibraryNewsController::class, 'index'])->name('client.library.news.index');
|
||||
Route::get('/library/news', [ClientLibraryNewsController::class, 'index'])->name('client.library.news.index'); // Доделать builder
|
||||
Route::get('/library/news/{id}', [ClientLibraryNewsController::class, 'show'])->name('client.library.news.show');
|
||||
|
||||
// Виртуальные выставки библиотеки
|
||||
Route::get('/library/exhibition', [ClientVirtualExhibitionController::class, 'index'])->name('client.library.exhibition.index');
|
||||
Route::get('/library/exhibition', [ClientVirtualExhibitionController::class, 'index'])->name('client.library.exhibition.index'); // Доделать builder
|
||||
Route::get('/library/exhibition/{id}', [ClientVirtualExhibitionController::class, 'show'])->name('client.library.exhibition.show');
|
||||
|
||||
// Вакансии вуза
|
||||
Route::get('/vacant/', [ClientVacantPositionController::class, 'index'])->name('client.vacant.index');
|
||||
|
||||
// Вакансии других учереждений
|
||||
Route::get('/current-vacancies/', [ClientExternalVacancyController::class, 'index'])->name('client.external.vacant.index');
|
||||
Route::get('/current-vacancies/', [ClientExternalVacancyController::class, 'index'])->name('client.external.vacant.index'); // Доделать builder
|
||||
Route::get('/current-vacancies/{id}', [ClientExternalVacancyController::class, 'show'])->name('client.external.vacant.show');
|
||||
|
||||
Route::get('/academic-journals/', [ClientAcademicJournalController::class, 'index'])->name('client.academicJournals.index');
|
||||
Route::get('/academic-journals/', [ClientAcademicJournalController::class, 'index'])->name('client.academicJournals.index'); // Доделать builder
|
||||
Route::get('/academic-journals/{slug}', [ClientAcademicJournalController::class, 'show'])->name('client.academicJournals.show');
|
||||
|
||||
// Факультеты и кафедры
|
||||
@@ -97,6 +98,10 @@ Route::middleware('access-check')->group(function () {
|
||||
|
||||
Route::get('/get-data', [UpdateEduDataApiController::class, 'index']);
|
||||
|
||||
Route::get('/vk-handle', [VkPostController::class, 'index']);
|
||||
Route::get('/vk-handle/wall', [VkPostController::class, 'wall']);
|
||||
|
||||
|
||||
Route::get('{path}', [PageController::class, 'render'])->where('path', '[0-9,a-z,/,-]+')->name('page.view');
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user