UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

11 lines 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const models_1 = require("../models"); exports.default = models_1.Endpoint .build() .bindToHttp({ method: 'GET', path: `/cache/usage` }) .bindToIo({ path: 'cache:usage:get' }) .assignHandler(async ({ incoming, reply, server }) => reply.ok({ redis: await server.services.analytics.calculateRedisUsage(incoming.query?.prefix), })); //# sourceMappingURL=cache.usage.get.endpoint.js.map