mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix config schema
This commit is contained in:
1 file changed
+1
-1
@@ -183,6 +183,7 @@ export function apply(ctx: Context) {
|
|||||||
about: Schema.string().role('markdown').default(defaultAbout),
|
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;
|
if (process.env.HYDRO_CLI) return;
|
||||||
ctx.Route('wiki_help', '/wiki/help', WikiHelpHandler);
|
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_theme', '/set_theme/:theme', SetThemeHandler);
|
||||||
ctx.Route('set_legacy', '/legacy', LegacyModeHandler);
|
ctx.Route('set_legacy', '/legacy', LegacyModeHandler);
|
||||||
ctx.Route('markdown', '/markdown', MarkdownHandler);
|
ctx.Route('markdown', '/markdown', MarkdownHandler);
|
||||||
ctx.Route('config_schema', '/manage/config/schema.json', SystemConfigSchemaHandler, PRIV.PRIV_EDIT_SYSTEM);
|
|
||||||
ctx.Route('media', '/media', RichMediaHandler);
|
ctx.Route('media', '/media', RichMediaHandler);
|
||||||
ctx.on('handler/after/DiscussionRaw', async (that) => {
|
ctx.on('handler/after/DiscussionRaw', async (that) => {
|
||||||
if (that.args.render && that.response.type === 'text/markdown') {
|
if (that.args.render && that.response.type === 'text/markdown') {
|
||||||
|
|||||||
Reference in new issue
Block a user