UNPKG

s3-autoindex

Version:

Serve the contents of a S3 bucket (private or public) over HTTP

21 lines 666 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const rxme = require("rxme"); class RxHttpMiddleWare { // public readonly next: NextFunction; constructor(req, res /*, next: NextFunction */) { this.req = req; this.res = res; // this.next = next; } } exports.RxHttpMiddleWare = RxHttpMiddleWare; function RxHttp(req, res /*, next: NextFunction*/) { return rxme.Msg.Type(new RxHttpMiddleWare(req, res /*, next */)); } exports.RxHttp = RxHttp; function RxHttpMatcher(cb) { return rxme.Matcher.Type(RxHttpMiddleWare, cb); } exports.RxHttpMatcher = RxHttpMatcher; //# sourceMappingURL=rx-http.js.map