@zthun/works.nest v4.0.0
Description
Zthunworks Nest services implement standard distributable services that can be reused across applications for consistency.
Installation
# NPM
npm install @zthun/works.nest
# Yarn
yarn add @zthun/works.nest
This package is divided into modules that automatically add specific http routes and services to your application without you having to add additional implementation. This package is built around the nestjs framework.
Health Module
The health module is used to add a basic health check to your application.
import { ZHealthModule } from '@zthun/works.nest';
@Module({
imports: [ZHealthModule]
})
export class MyApp {}
The following is the route that gets added.
/**
* Returns a 200 return code.
*/
@Get('health')
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago