mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 15:37:53 +00:00
feat(#20): preference: assign mirror device id to auto joined devices
This commit is contained in:
parent
b4dfb1673f
commit
74ceaffc9a
8 changed files with 138 additions and 2 deletions
|
|
@ -28,6 +28,7 @@ Route::get('/display', function (Request $request) {
|
|||
'name' => "{$auto_assign_user->name}'s TRMNL",
|
||||
'friendly_id' => Str::random(6),
|
||||
'default_refresh_interval' => 900,
|
||||
'mirror_device_id' => $auto_assign_user->assign_new_device_id,
|
||||
]);
|
||||
} else {
|
||||
return response()->json([
|
||||
|
|
@ -135,6 +136,7 @@ Route::get('/setup', function (Request $request) {
|
|||
'name' => "{$auto_assign_user->name}'s TRMNL",
|
||||
'friendly_id' => Str::random(6),
|
||||
'default_refresh_interval' => 900,
|
||||
'mirror_device_id' => $auto_assign_user->assign_new_device_id,
|
||||
]);
|
||||
} else {
|
||||
return response()->json([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue