1 parent 716ac90 commit 07fb079Copy full SHA for 07fb079
1 file changed
src/WelcomeDashboard.jsx
@@ -47,5 +47,15 @@ const WelcomeDashboard = () => {
47
</div>
48
);
49
};
50
+// Add a quick fetch function inside your component
51
+const checkStatus = async () => {
52
+ try {
53
+ const response = await fetch('http://localhost:8000/');
54
+ const data = await response.json();
55
+ console.log("Lab Status:", data);
56
+ } catch (error) {
57
+ console.error("Lab offline");
58
+ }
59
+};
60
61
export default WelcomeDashboard;
0 commit comments