UNPKG

@thisisagile/easy-service

Version:

Straightforward library for building domain-driven microservice architectures

28 lines (27 loc) 592 B
import { HealthUri } from "../chunk-2XMYNSTI.mjs"; import { get } from "../chunk-W62PBGRF.mjs"; import { route } from "../chunk-FYPLZQRO.mjs"; import { __decorateClass } from "../chunk-4N72FQFX.mjs"; // src/health/HealthResource.ts import { resolve } from "@thisisagile/easy"; var HealthResource = class { ok = () => resolve({ state: "Service is healthy." }); }; __decorateClass([ get() ], HealthResource.prototype, "ok", 2); HealthResource = __decorateClass([ route(HealthUri.Health) ], HealthResource); export { HealthResource }; //# sourceMappingURL=HealthResource.mjs.map