ref(global) update project structure

This commit is contained in:
lumither committed 2024-06-18 13:07:40 +08:00
1 parent 2fabd8d5c0
commit 6b75c17b05
32 files changed
+67 -42

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import axios from 'axios';
export default async function fetch_posts_list(): Promise<any> {
const response = await axios(`${ process.env.BACKEND_URL }/get_post_list`);
if (response.status !== 200) {
throw new Error(response.statusText);
}
return response.data;
}