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:
@@ -6,7 +6,7 @@ import axios from 'axios'
|
||||
*/
|
||||
const api = axios.create({
|
||||
baseURL: 'http://localhost:3000', // 设置后端服务地址
|
||||
timeout: 10000, // 请求超时时间
|
||||
timeout: 60000, // 请求超时时间(60秒)
|
||||
})
|
||||
|
||||
// 请求拦截器
|
||||
|
||||
Reference in New Issue
Block a user