summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2022-09-09 15:28:41 +0100
committerSam Light <samlight1994@gmail.com>2022-09-09 15:28:41 +0100
commit157d77625644a97742f6953df6a42476c5387e2c (patch)
treea66cd826b013006e55b0d96f98546b848ef0858a
parent615ae1005ace5c2645c7f6aa53045619fcbd1499 (diff)
Moved controller out of http folder. No need to nest!
-rw-r--r--src/Controllers/ScormPlayerController.php (renamed from src/Http/Controllers/ScormPlayerController.php)6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Http/Controllers/ScormPlayerController.php b/src/Controllers/ScormPlayerController.php
index 179e78f..e7f3971 100644
--- a/src/Http/Controllers/ScormPlayerController.php
+++ b/src/Controllers/ScormPlayerController.php
@@ -1,6 +1,6 @@
<?php
-namespace Lightscale\ScormPlayer\Http\Controllers;
+namespace Lightscale\ScormPlayer\Controllers;
use Lightscale\ScormPlayer\Models\{
Scorm,
@@ -22,7 +22,7 @@ use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
class ScormPlayerController extends Controller
{
- private const JS_PATH = __DIR__ . '/../../../dist/js/scorm_player.js';
+ private const JS_PATH = __DIR__ . '/../../dist/js/scorm_player.js';
public function player(Request $request, Scorm $module)
{
@@ -113,8 +113,6 @@ class ScormPlayerController extends Controller
{
return response()->file(self::JS_PATH, [
'Content-Type' => 'application/javascript',
- //'Cache-Control' => $cacheControl,
- //'ETag' => $etag,
]);
}