mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 18:36:21 +00:00
feat(global) new api rule, NextImage support, test openresty
This commit is contained in:
9 files changed
+47
-13
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
|
||||
export default async function fetch_posts_list(): Promise<any> {
|
||||
const response = await axios(`http://localhost:${ process.env.BACKEND_PORT }/api/get/post_list`);
|
||||
const response = await axios(`${ process.env.BACKEND_URL }/get_post_list`);
|
||||
if (response.status !== 200) {
|
||||
throw new Error(response.statusText);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user