basic room display grid + buttons

This commit is contained in:
2025-12-04 12:27:31 +01:00
parent 61a7ab64d1
commit 787a248e6f
10 changed files with 241 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
import { API_BASE } from "../config";
import { useState } from "react";
export default function Login({ onLogin }) {
@@ -9,10 +11,10 @@ export default function Login({ onLogin }) {
e.preventDefault();
setError("");
const device_id = "147ac10b-58cc-4372-a567-0e02b2c3d479" ;
const device_id = "147ac10b-58cc-4372-a567-0e02b2c3d479";
try {
const res = await fetch("http://localhost:7080/auth/create_refresh", {
const res = await fetch(`${API_BASE}/auth/create_refresh`, {
method: "POST",
headers: {
"Content-Type": "application/json",