import App from "./App.js";
new App(document.querySelector(".App"));
const API_URL = "https://zl3m4qq0l9.execute-api.ap-northeast-2.amazonaws.com/dev";
export const fetchFiles = async(nodeId) => {
let result;
try {
result = await fetch(API_URL + nodeId ? `/${nodeId}` : "", {
method: "GET",
})
return await result.json();
} catch (err) {
console.log(err);
}
}