youzanyun-devtool-worker
Version:
- web - ws - proxy
26 lines (25 loc) • 989 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const spring4js_nodejs_1 = require("spring4js-nodejs");
let ActionFileRequestService = class ActionFileRequestService {
async processRequest(ctx, next) {
let { pcFileRequest } = ctx.query;
if (!pcFileRequest) {
return false;
}
let { appId, appType, pageName } = ctx.query;
let categoryName = 'showcase';
let handler = await this.pcCustomService.getPageHandler({ projectId: appId, appName: appType, pageName, categoryName });
let res = await handler.getFileRequestResponse();
ctx.body = res;
return true;
}
};
tslib_1.__decorate([
spring4js_nodejs_1.Resource()
], ActionFileRequestService.prototype, "pcCustomService", void 0);
ActionFileRequestService = tslib_1.__decorate([
spring4js_nodejs_1.Service()
], ActionFileRequestService);
exports.default = ActionFileRequestService;