feat(logging): add logging middleware for HTTP requests and update API timeout

- Introduce LoggingMiddleware to log incoming requests and their response times
- Update AppModule to apply the new logging middleware globally
- Increase API request timeout from 10 seconds to 60 seconds
- Modify PromptString to include additional project types of interest
This commit is contained in:
dmy
2026-01-15 21:52:40 +08:00
parent 3033eb622f
commit 811ad927f3
5 changed files with 39 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import axios from 'axios'
*/
const api = axios.create({
baseURL: 'http://localhost:3000', // 设置后端服务地址
timeout: 10000, // 请求超时时间
timeout: 60000, // 请求超时时间60秒
})
// 请求拦截器