- src/pages/index.tsx +1 -1
src/pages/index.tsx
CHANGED
@@ -9,7 +9,7 @@ export default function Home() {
|
|
9 |
const update = useCallback(
|
10 |
|
11 |
(async () => {
|
12 |
-
const res= (await ((await fetch('
|
13 |
setData(res.file_list[0]);
|
14 |
}), []
|
15 |
)
|
|
|
9 |
const update = useCallback(
|
10 |
|
11 |
(async () => {
|
12 |
+
const res= (await ((await fetch('/api/get_file_list')).json()))
|
13 |
setData(res.file_list[0]);
|
14 |
}), []
|
15 |
)
|