Moved video files to public/videos directory, small refactoring.

This commit is contained in:
Krzysztof Płaczek
2023-03-30 12:46:30 +02:00
parent 5902bf7c2b
commit 5784cf8ed3
10 changed files with 42 additions and 41 deletions

View File

@@ -1,28 +1,18 @@
<?php
use App\Http\Controllers\ChapterController;
use App\Http\Controllers\Course\Sync;
use App\Http\Controllers\CourseController;
use App\Http\Controllers\Index;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/download', [Index::class, 'download']);
Route::get('/', [Index::class, 'index']);
Route::get('/track/{track}', [Index::class, 'index']);
Route::prefix('course')->name('course.')->group(function () {
Route::get('/{course}', [CourseController::class, 'index'])->name('index');
Route::get('/{course}/sync', [CourseController::class, 'sync'])->name('sync');
Route::get('/{course}/chapter/{chapter}', [ChapterController::class, 'index'])->name('chapter');
Route::prefix('course')->group(function () {
Route::get('/{course}', CourseController::class)->name('course.index');
Route::get('/{course}/sync', Sync::class)->name('course.sync');
Route::get('/{course}/chapter/{chapter}', ChapterController::class)->name('course.chapter');
});