feat: add OpenAPI support and in-process cron scheduler

- Install @elysia/openapi to auto-generate API docs at /api/openapi
- Install @elysia/cron for in-process scheduled jobs (orphan detection at 2am, storage cleanup at 3am)
- Add Scalar UI docs with 14 tag groups and Bearer JWT security scheme
- Add route-level detail annotations (tags, summaries) to all 30+ route files
- Upgrade crud-builder to accept optional tags config
- Keep HTTP cron endpoint as manual/admin fallback
This commit is contained in:
2026-05-14 21:43:33 +08:00
parent 20f010cef1
commit fbfc43832e
37 changed files with 161 additions and 32 deletions
+2
View File
@@ -19,7 +19,9 @@
"@aws-sdk/client-s3": "^3.1036.0",
"@better-auth/drizzle-adapter": "^1.6.9",
"@better-auth/passkey": "^1.6.9",
"@elysia/cron": "^1.4.2",
"@elysia/eden": "^1.4.10",
"@elysia/openapi": "^1.4.15",
"@serwist/expiration": "^9.5.11",
"@serwist/next": "^9.5.11",
"@serwist/precaching": "^9.5.11",