完善基础框架,对原有APILoader进行接口响应的错误处理

This commit is contained in:
tone
2024-09-25 01:21:23 +08:00
parent a9c67cd013
commit 7acdfc2c68
12 changed files with 398 additions and 0 deletions

9
src/config.ts Normal file
View File

@@ -0,0 +1,9 @@
const config = {
cors: {
origin: ['http://localhost:5173'],
allowedHeaders: ['Content-Type'],
methods: ['GET', 'POST']
},
API_Port: 8080
};
export default config;