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

+6
View File
@@ -20,6 +20,12 @@ const DEFAULT_THEME_SETTINGS = {
editorIndentGuides: false
};
/**
* @openapi
* summary: Public theme + editor display settings (used by the login page before auth)
* resp-200: object
* resp-200-desc: Light/dark theme, fonts, and editor display flags (e.g. editorIndentGuides)
*/
export const GET: RequestHandler = async () => {
try {
const [