ui: fix config schema

This commit is contained in:
undefined committed 2025-06-11 11:54:19 +08:00
1 parent 1a1cff6e8e
commit c1cdc703fe
1 file changed
+1 -1
+1 -1
View File
@@ -183,6 +183,7 @@ export function apply(ctx: Context) {
about: Schema.string().role('markdown').default(defaultAbout),
}),
}));
ctx.Route('config_schema', '/manage/config/schema.json', SystemConfigSchemaHandler, PRIV.PRIV_EDIT_SYSTEM);
});
if (process.env.HYDRO_CLI) return;
ctx.Route('wiki_help', '/wiki/help', WikiHelpHandler);
@@ -190,7 +191,6 @@ export function apply(ctx: Context) {
ctx.Route('set_theme', '/set_theme/:theme', SetThemeHandler);
ctx.Route('set_legacy', '/legacy', LegacyModeHandler);
ctx.Route('markdown', '/markdown', MarkdownHandler);
ctx.Route('config_schema', '/manage/config/schema.json', SystemConfigSchemaHandler, PRIV.PRIV_EDIT_SYSTEM);
ctx.Route('media', '/media', RichMediaHandler);
ctx.on('handler/after/DiscussionRaw', async (that) => {
if (that.args.render && that.response.type === 'text/markdown') {