πCore
The module that provides methods for get client GeoIP and cookie.
Imports
import { CoreService } from 'niro-health';import { CoreModule } from 'niro-health';Method of Use
import { Module } from '@nestjs/common';
import { CoreService } from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [AppService, CoreService],
})
export class AppModule {}import { Injectable } from '@nestjs/common';
import { CoreService } from 'niro-health';
@Injectable()
export class AppService {
constructor(private readonly coreService: CoreService) {}
getClientGeoIP(request: Express.Request) {
return this.coreService.getClientGeoIP(request);
}
}Without dependencies
Extensibility
Methods
Method
Scope
Description
Last updated