mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
ref(global) update project structure
This commit is contained in:
32 files changed
+67
-42
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user