OpenAPI spec at /api/docs with a Scalar viewer, opt-in via FEAT_API_DOCS

This commit is contained in:
jarek committed 2026-08-17 09:50:34 +02:00
1 parent ba8670af66
commit da26f7f764
251 files changed
+32497 -66

No files matched your search

+7
View File
@@ -13,3 +13,10 @@
* 5. Drop the BACKUPS_ENABLED guards in src/lib/server/scheduler/index.ts.
*/
export const BACKUPS_ENABLED = process.env.FEAT_BACKUPS_ENABLED === 'true';
/**
* API docs (OpenAPI spec + Scalar viewer at /api/docs and /api/docs/ui).
* Off by default: the docs routes are unauthenticated, so exposing the full
* API surface is opt-in per instance with FEAT_API_DOCS=true. Read once at boot.
*/
export const API_DOCS_ENABLED = process.env.FEAT_API_DOCS === 'true';