Phase 4 Complete by Claude Code
This commit is contained in:
@@ -9,6 +9,9 @@ import MelodySettings from "./melodies/MelodySettings";
|
||||
import DeviceList from "./devices/DeviceList";
|
||||
import DeviceDetail from "./devices/DeviceDetail";
|
||||
import DeviceForm from "./devices/DeviceForm";
|
||||
import UserList from "./users/UserList";
|
||||
import UserDetail from "./users/UserDetail";
|
||||
import UserForm from "./users/UserForm";
|
||||
|
||||
function ProtectedRoute({ children }) {
|
||||
const { user, loading } = useAuth();
|
||||
@@ -62,8 +65,11 @@ export default function App() {
|
||||
<Route path="devices/new" element={<DeviceForm />} />
|
||||
<Route path="devices/:id" element={<DeviceDetail />} />
|
||||
<Route path="devices/:id/edit" element={<DeviceForm />} />
|
||||
{/* Phase 4+ routes:
|
||||
<Route path="users" element={<UserList />} />
|
||||
<Route path="users/new" element={<UserForm />} />
|
||||
<Route path="users/:id" element={<UserDetail />} />
|
||||
<Route path="users/:id/edit" element={<UserForm />} />
|
||||
{/* Phase 5+ routes:
|
||||
<Route path="mqtt" element={<MqttDashboard />} />
|
||||
*/}
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
|
||||
Reference in New Issue
Block a user