youzanyun-devtool-worker
Version:
33 lines (32 loc) • 1.4 kB
JavaScript
;
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 PcHtmlController = class PcHtmlController extends BaseController_1.default {
async getAppHtml(ctx, next) {
let renderContext = {};
ctx.body = await this.render("pc-app.njk.html", renderContext);
}
async getPreviewHtml(ctx, next) {
let renderContext = {};
ctx.body = await this.render("pc-preview.njk.html", renderContext);
}
async getMeiPcHtml(ctx, next) {
let renderContext = {};
ctx.body = await this.render("mei-pc-extension.njk.html", renderContext);
}
};
tslib_1.__decorate([
(0, spring4js_nodejs_1.Path)("app", spring4js_nodejs_1.HttpMethod.GET)
], PcHtmlController.prototype, "getAppHtml", null);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Path)("preview", spring4js_nodejs_1.HttpMethod.GET)
], PcHtmlController.prototype, "getPreviewHtml", null);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Path)("mei-pc-extension", spring4js_nodejs_1.HttpMethod.GET)
], PcHtmlController.prototype, "getMeiPcHtml", null);
PcHtmlController = tslib_1.__decorate([
(0, spring4js_nodejs_1.Controller)("/html/pc/")
], PcHtmlController);
exports.default = PcHtmlController;