mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(post) add header, fix style
This commit is contained in:
12 files changed
+194
-59
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import axios from 'axios';
|
||||
|
||||
export default async function fetch_posts_list(): Promise<any> {
|
||||
const response = await axios(`${ process.env.BACKEND_URL }/get_post_list`);
|
||||
const request_url = `${ process.env.BACKEND_URL }/get_post_list`;
|
||||
const response = await axios(request_url);
|
||||
if (response.status !== 200) {
|
||||
throw new Error(response.statusText);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user