summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothedev <grothedev@gmail.com>2025-02-04 22:28:03 -0600
committergrothedev <grothedev@gmail.com>2025-02-04 22:28:03 -0600
commit9dfa194576f038d6a288ca8cd1361f4e7c8b6ff7 (patch)
tree4b6e6e8b6c039f0dd6992858f5bce39d6ee814a9
parent1d80d66c3ff5815bee814f925fd106a005de195a (diff)
band info song path
-rwxr-xr-xresources/views/bandinfo.blade.php4
-rwxr-xr-xroutes/web.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/views/bandinfo.blade.php b/resources/views/bandinfo.blade.php
index be32b93..0330f90 100755
--- a/resources/views/bandinfo.blade.php
+++ b/resources/views/bandinfo.blade.php
@@ -23,12 +23,12 @@
$files = Storage::disk('public')->files('band');
?>
@foreach ($files as $file)
- <? $file = substr($file, 5); //quick and dirty, to remove 'band/' from path ?>
+ <? $fn = substr($file, 5); //quick and dirty, to remove 'band/' from path ?>
<!--<audio controls>
<source src="/f/{{ $file }}" type="audio/mpeg">
Your browser does not support the audio element.
</audio>-->
- <a href="/mu/{{ $file }}">{{ $file }}</a>
+ <a href="/mu/{{ $fn }}">{{ $fn }}</a>
@endforeach
</section>
<section id = "description">
diff --git a/routes/web.php b/routes/web.php
index 0e3c02a..cba4868 100755
--- a/routes/web.php
+++ b/routes/web.php
@@ -26,7 +26,7 @@ Route::get('/f/{path}', function($path){
]);
});
-Route::get('/mu/{path}', function(){
+Route::get('/mu/{path}', function($path){
$storpath = storage_path('app/public/band/' . $path);
if (!file_exists($storpath)){
return response()->json(['error' => 'file not found ' . $storpath]);