UNPKG

@cashfarm/tractor

Version:

A Hapi server with superpowers

15 lines 482 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const plow_1 = require("@cashfarm/plow"); class CreatedResponse { constructor(message, id, resourceUrl) { this.message = message; this.id = id; this.resourceUrl = resourceUrl; this.status = 201; if (id instanceof plow_1.Identity) this.id = id.toString(); } } exports.CreatedResponse = CreatedResponse; //# sourceMappingURL=createdResponse.js.map