blob: 08af0fb10087081b41d96e936ddcb6fb33fd55c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.prettyJSON = void 0;
const prettyJSON = (options = { space: 2 }) => {
return async (c, next) => {
const pretty = c.req.query('pretty') || c.req.query('pretty') === '' ? true : false;
c.pretty(pretty, options.space);
await next();
};
};
exports.prettyJSON = prettyJSON;
|