mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
initial commit
This commit is contained in:
parent
32d63c09e7
commit
01655b413e
37 changed files with 2564 additions and 283 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue