From 516cf804367366a4c0c237e6b8f4829d899c85f9 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Tue, 6 Sep 2022 12:28:29 +0100 Subject: Cache bust javascript file --- routes/web.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'routes') diff --git a/routes/web.php b/routes/web.php index b86d710..4570f11 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,6 +10,9 @@ Route::name('scorm-player.')->prefix('elearning')->middleware([ 'web', ])->group(function() { + Route::get('scorm-player-{version}.js', [ScormPlayerController::class, 'jsSource']) + ->name('javascript'); + $group = function() { Route::get('/scorm/{sco}', 'scormLoad')->name('scorm.load'); Route::post('/scorm/{tracking}', 'scormCommit')->name('scorm.commit'); @@ -26,4 +29,5 @@ Route::name('scorm-player.')->prefix('elearning')->middleware([ } $route->group($group); + }); -- cgit v1.2.3