mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
* feat: autojoin toggle * feat: auto add devices * feat: proxy feature * feat: support puppeteer in docker * feat: toggle to activate cloud proxy * feat: relay device information * feat: relay logs to cloud * feat: migrate on start * feat: calculate battery state, wifi signal * feat: eye candy for configure view * feat: update via api
27 lines
991 B
PHP
27 lines
991 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Livewire\Volt\Volt;
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
})->name('home');
|
|
|
|
Route::middleware(['auth'])->group(function () {
|
|
Route::redirect('settings', 'settings/profile');
|
|
Volt::route('settings/profile', 'settings.profile')->name('settings.profile');
|
|
Volt::route('settings/password', 'settings.password')->name('settings.password');
|
|
Volt::route('settings/appearance', 'settings.appearance')->name('settings.appearance');
|
|
|
|
Volt::route('/dashboard', 'device-dashboard')->name('dashboard');
|
|
|
|
Volt::route('/devices', 'devices.manage')->name('devices');
|
|
Volt::route('/devices/{device}/configure', 'devices.configure')->name('devices.configure');
|
|
|
|
Volt::route('plugins', 'plugins.index')->name('plugins.index');
|
|
|
|
Volt::route('plugins/markup', 'plugins.markup')->name('plugins.markup');
|
|
Volt::route('plugins/api', 'plugins.api')->name('plugins.api');
|
|
});
|
|
|
|
require __DIR__.'/auth.php';
|