feat(api): add style_presets router, make sure all CRUD is working, add is_default

This commit is contained in:
Mary Hipp
2024-08-02 12:29:54 -04:00
parent b76bf50b93
commit 217fe40d99
8 changed files with 165 additions and 34 deletions

View File

@ -110,7 +110,7 @@ class ApiDependencies:
session_queue = SqliteSessionQueue(db=db)
urls = LocalUrlService()
workflow_records = SqliteWorkflowRecordsStorage(db=db)
style_presets = SqliteStylePresetRecordsStorage(db=db)
style_preset_records = SqliteStylePresetRecordsStorage(db=db)
services = InvocationServices(
board_image_records=board_image_records,
@ -136,7 +136,7 @@ class ApiDependencies:
workflow_records=workflow_records,
tensors=tensors,
conditioning=conditioning,
style_presets=style_presets,
style_preset_records=style_preset_records,
)
ApiDependencies.invoker = Invoker(services)