28 lines
970 B
PHP
28 lines
970 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\ChapterController;
|
|
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::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('/chapter/{chapter}', [ChapterController::class, 'index'])->name('course.chapter');
|
|
|
|
|