UNPKG

actionhero

Version:

The reusable, scalable, and quick node.js API server for stateless and stateful applications

18 lines (17 loc) 515 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SendFile = void 0; const index_1 = require("../index"); class SendFile extends index_1.Action { constructor() { super(...arguments); this.name = "sendFile"; this.description = "I send a file though an action"; this.outputExample = {}; } async run(data) { await data.connection.sendFile("logo/actionhero.png"); data.toRender = false; } } exports.SendFile = SendFile;