Glosur/nestjs-actuator

View on GitHub
src/endpoints/info/info.provider.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { DefaultInfoEndpoint } from "./defaultInfo.endpoint";
import { Provider } from "@nestjs/common";
import { ACTUATOR_ENDPOINT_PREFIX } from "../../actuator.constant";

export default function getInfoEndpoint(): Provider {
  return {
    provide: ACTUATOR_ENDPOINT_PREFIX + "info",
    useClass: DefaultInfoEndpoint,
  };
}