mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: update renderer interface
This commit is contained in:
4 files changed
+45
-46
No files matched your search
@@ -145,7 +145,6 @@ export function apply(ctx: Context) {
|
||||
ctx.Route('markdown', '/markdown', MarkdownHandler);
|
||||
ctx.Route('config_schema', '/manage/config/schema.json', SystemConfigSchemaHandler, PRIV.PRIV_EDIT_SYSTEM);
|
||||
ctx.Route('media', '/media', RichMediaHandler);
|
||||
ctx.plugin(require('./backendlib/builder'));
|
||||
ctx.on('handler/after/DiscussionRaw', async (that) => {
|
||||
if (that.args.render && that.response.type === 'text/markdown') {
|
||||
that.response.type = 'text/html';
|
||||
@@ -164,4 +163,6 @@ export function apply(ctx: Context) {
|
||||
domains: SystemModel.get('ui-default.domains') || [],
|
||||
};
|
||||
});
|
||||
ctx.plugin(require('./backendlib/template'));
|
||||
ctx.plugin(require('./backendlib/builder'));
|
||||
}
|
||||
Reference in new issue
Block a user