cherry-studio/src/main/apiServer/middleware
fullex 819f6de64d refactor(api): migrate API server configuration to preference service
- Removed the config module and replaced its usage with preferenceService across the API server implementation.
- Updated the auth middleware to retrieve the API key from preferenceService instead of the config.
- Adjusted the ApiServerService to ensure a valid API key is generated and stored in preferences.
- Refactored the useApiServer hook to utilize the new preference system for API server configuration.
- Updated related tests to mock preferenceService instead of config.
- Cleaned up unused imports and adjusted related components to align with the new configuration approach.
2025-12-02 12:47:30 +08:00
..
__tests__ refactor(api): migrate API server configuration to preference service 2025-12-02 12:47:30 +08:00
auth.ts refactor(api): migrate API server configuration to preference service 2025-12-02 12:47:30 +08:00
error.ts chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00
openapi.ts refactor: remove heroui 2025-11-06 18:27:43 +08:00