@zthun/webigail-nest
v5.1.0
Published
A nest-js module that add the tokens and implementations for the http service in webigail-http.
Readme
Webigail Nest
NestJS already comes with an HTTP module built in, so it is recommended to just use that one. If you are using webigail-http and you want to inject that service into your NestJS project, then this package comes with the module that will do that for you.
Build Status
Usage
# NPM
npm install @zthun/webigail-nest
# Yarn
yarn add @zthun/webigail-nest// product-module.ts
import { ZHttpModule } from '@zthun/webigail-nest';
@Module(
imports: [ZHttpModule],
providers: [ProductService],
exports: [ProductService]
)
export class ProductModule {}
// product-service.ts
import { IZHttpService } from '@zthun/webigail-http';
@Injectable()
export class ProductService {
public constructor(@Inject(ZHttpServiceToken) private _http: IZHttpService) {}
}