mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 23:25:43 -03:00
Refactor API endpoints to use '/api/lm/' prefix
- Updated all relevant routes in `stats_routes.py` and `update_routes.py` to include the new '/api/lm/' prefix for consistency. - Modified API endpoint configurations in `apiConfig.js` to reflect the new structure, ensuring all CRUD and bulk operations are correctly routed. - Adjusted fetch calls in various components and managers to utilize the updated API paths, including recipe, model, and example image operations. - Ensured all instances of the old API paths were replaced with the new '/api/lm/' prefix across the codebase for uniformity and to prevent broken links.
This commit is contained in:
@@ -65,12 +65,12 @@ class StatisticsManager {
|
||||
storageAnalytics,
|
||||
insights
|
||||
] = await Promise.all([
|
||||
this.fetchData('/api/stats/collection-overview'),
|
||||
this.fetchData('/api/stats/usage-analytics'),
|
||||
this.fetchData('/api/stats/base-model-distribution'),
|
||||
this.fetchData('/api/stats/tag-analytics'),
|
||||
this.fetchData('/api/stats/storage-analytics'),
|
||||
this.fetchData('/api/stats/insights')
|
||||
this.fetchData('/api/lm/stats/collection-overview'),
|
||||
this.fetchData('/api/lm/stats/usage-analytics'),
|
||||
this.fetchData('/api/lm/stats/base-model-distribution'),
|
||||
this.fetchData('/api/lm/stats/tag-analytics'),
|
||||
this.fetchData('/api/lm/stats/storage-analytics'),
|
||||
this.fetchData('/api/lm/stats/insights')
|
||||
]);
|
||||
|
||||
this.data = {
|
||||
|
||||
Reference in New Issue
Block a user