refactor: convert library scan to Server Action

- Add src/app/actions/library.ts with scanLibrary
- Update ScanButton to use Server Action
- Remove POST from api/komga/libraries/[libraryId]/scan route
This commit is contained in:
2026-02-28 10:53:41 +01:00
parent d56b0fd7ae
commit 6180f9abb1
4 changed files with 35 additions and 57 deletions

View File

@@ -11,6 +11,7 @@
| `POST /api/komga/favorites` | `addToFavorites()` | ✅ Done |
| `DELETE /api/komga/favorites` | `removeFromFavorites()` | ✅ Done |
| `PUT /api/preferences` | `updatePreferences()` | ✅ Done |
| `POST /api/komga/libraries/[libraryId]/scan` | `scanLibrary()` | ✅ Done |
---