initial commit

This commit is contained in:
Benjamin Nussbaum 2025-02-12 22:15:57 +01:00
parent 32d63c09e7
commit 01655b413e
37 changed files with 2564 additions and 283 deletions

View file

@ -12,4 +12,19 @@ Route::view('profile', 'profile')
->middleware(['auth'])
->name('profile');
Route::middleware(['auth:sanctum', 'verified'])->group(function () {
Route::get('/devices', function () {
return view('devices');
})->name('devices');
Route::get('/devices/{device}/configure', function (App\Models\Device $device) {
$current_image_uuid = auth()->user()->devices()->find($device->id)->current_screen_image;
$current_image_path = 'images/generated/'.$current_image_uuid.'.png';
return view('devices.configure', compact('device'), [
'image' => ($current_image_uuid) ? url($current_image_path) : null,
]);
})->name('devices.configure');
});
require __DIR__.'/auth.php';