feat: update API endpoints to include '/list' for model retrieval in routes and templates, fixes #344

This commit is contained in:
Will Miao
2025-08-07 18:06:40 +08:00
parent 6678ec8a60
commit fa9c78209f
5 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ class BaseModelRoutes(ABC):
prefix: URL prefix (e.g., 'loras', 'checkpoints')
"""
# Common model management routes
app.router.add_get(f'/api/{prefix}', self.get_models)
app.router.add_get(f'/api/{prefix}/list', self.get_models)
app.router.add_post(f'/api/{prefix}/delete', self.delete_model)
app.router.add_post(f'/api/{prefix}/exclude', self.exclude_model)
app.router.add_post(f'/api/{prefix}/fetch-civitai', self.fetch_civitai)