UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

42 lines (41 loc) 1.81 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); const BaseController_1 = tslib_1.__importDefault(require("../BaseController")); let H5HtmlController = class H5HtmlController extends BaseController_1.default { async getH5Html(ctx, next) { let renderContext = {}; ctx.body = await this.render("h5-extension.njk.html", renderContext); } async getBeautyH5Html(ctx, next) { let renderContext = {}; ctx.body = await this.render("mei-h5-extension.njk.html", renderContext); } async getCompPreviewHtml(ctx, next) { let renderContext = {}; const result = await this.render("h5-comp-preview.njk.html", renderContext); ctx.body = result; } async getReplacePreviewHtml(ctx, next) { let renderContext = {}; const result = await this.render("h5-replace-preview.njk.html", renderContext); ctx.body = result; } }; tslib_1.__decorate([ spring4js_nodejs_1.Path("h5-extension", spring4js_nodejs_1.HttpMethod.GET) ], H5HtmlController.prototype, "getH5Html", null); tslib_1.__decorate([ spring4js_nodejs_1.Path("mei-h5-extension", spring4js_nodejs_1.HttpMethod.GET) ], H5HtmlController.prototype, "getBeautyH5Html", null); tslib_1.__decorate([ spring4js_nodejs_1.Path("h5-comp-preview", spring4js_nodejs_1.HttpMethod.GET) ], H5HtmlController.prototype, "getCompPreviewHtml", null); tslib_1.__decorate([ spring4js_nodejs_1.Path("h5-replace-preview", spring4js_nodejs_1.HttpMethod.GET) ], H5HtmlController.prototype, "getReplacePreviewHtml", null); H5HtmlController = tslib_1.__decorate([ spring4js_nodejs_1.Controller("/html/") ], H5HtmlController); exports.default = H5HtmlController;