diff options
| -rwxr-xr-x | resources/views/bandinfo.blade.php | 4 | ||||
| -rwxr-xr-x | routes/web.php | 2 |
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]); |
