feat: add unified generation entrypoint

This commit is contained in:
2026-04-18 12:55:20 +08:00
parent 9e1a17fa67
commit e201fa3358
10 changed files with 358 additions and 67 deletions

View File

@@ -137,9 +137,9 @@ See `backend/.env.example` for required variables:
| GET | `/auth/{provider}/signin` | OAuth login |
| GET | `/auth/dev/signin` | Local dev login |
| GET | `/auth/session` | Get current user |
| POST | `/api/stories/generate/full` | Generate story + assets |
| POST | `/api/storybook/generate` | Generate storybook |
| POST | `/api/stories/{id}/assets/retry` | Retry cover/audio assets |
| POST | `/api/generations` | Unified story/storybook generation |
| GET | `/api/generations/{id}` | Get generated result |
| POST | `/api/generations/{id}/retry-assets` | Retry generated assets |
| GET | `/api/stories` | List stories (paginated) |
| GET/DELETE | `/api/stories/{id}` | Story CRUD |
| CRUD | `/api/profiles` | User profiles |