Working on the homepage

This commit is contained in:
Shaun Collins
2026-04-29 15:55:21 +01:00
parent 53aa345082
commit 89cc867c7d
29 changed files with 360 additions and 58 deletions
+18
View File
@@ -3,9 +3,27 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\File;
class ImagesController extends Controller
{
public function jobs()
{
$path = resource_path('images/Jobs');
if (!File::exists($path)) {
return response()->json([]);
}
$files = File::files($path);
$filenames = array_map(function ($file) {
return $file->getFilename();
}, $files);
return response()->json($filenames);
}
public function show(Request $request, string $file)
{
try {