重构后端,完善获取资源/下载列表、博客列表接口

This commit is contained in:
2024-08-29 21:59:55 +08:00
parent 2a005b2e14
commit bc99fba385
18 changed files with 486 additions and 193 deletions

15
Server/src/config.ts Normal file
View File

@@ -0,0 +1,15 @@
const config = {
mysql: {
host: 'localhost',
// host:'server.tonesc.cn',
database: 'tonecn',
user: 'root',
password: 'Shi15023847146'
// password: '245565'
},
authToken: '17e50223f4a545ec9e36ebf08e2f71bb',
adminToken: '3a6f71412f9e48b9bbbd056aa7eb5467',
apiPort: 23500,
} as const;
export default config;