UNPKG

487 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var graphql_playground_html_1 = require("graphql-playground-html");
4var express = function voyagerExpress(options) {
5 return function (req, res, next) {
6 res.setHeader('Content-Type', 'text/html');
7 var playground = graphql_playground_html_1.renderPlaygroundPage(options);
8 res.write(playground);
9 res.end();
10 };
11};
12exports.default = express;
13//# sourceMappingURL=index.js.map
\No newline at end of file