Skip to content

Commit c1cdc70

Browse files
committed
ui: fix config schema
1 parent 1a1cff6 commit c1cdc70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ui-default/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,14 @@ export function apply(ctx: Context) {
183183
about: Schema.string().role('markdown').default(defaultAbout),
184184
}),
185185
}));
186+
ctx.Route('config_schema', '/manage/config/schema.json', SystemConfigSchemaHandler, PRIV.PRIV_EDIT_SYSTEM);
186187
});
187188
if (process.env.HYDRO_CLI) return;
188189
ctx.Route('wiki_help', '/wiki/help', WikiHelpHandler);
189190
ctx.Route('wiki_about', '/wiki/about', WikiAboutHandler);
190191
ctx.Route('set_theme', '/set_theme/:theme', SetThemeHandler);
191192
ctx.Route('set_legacy', '/legacy', LegacyModeHandler);
192193
ctx.Route('markdown', '/markdown', MarkdownHandler);
193-
ctx.Route('config_schema', '/manage/config/schema.json', SystemConfigSchemaHandler, PRIV.PRIV_EDIT_SYSTEM);
194194
ctx.Route('media', '/media', RichMediaHandler);
195195
ctx.on('handler/after/DiscussionRaw', async (that) => {
196196
if (that.args.render && that.response.type === 'text/markdown') {

0 commit comments

Comments
 (0)