basic room display grid + buttons
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user