app.controller.ts 531 B

12345678910111213141516171819202122232425
  1. import { Controller, Get } from '@nestjs/common';
  2. import { AppService } from './app.service';
  3. import { EventPattern } from '@nestjs/microservices';
  4. import { FingerprintService } from './services/fingerprint.service';
  5. @Controller()
  6. export class AppController {
  7. constructor() {
  8. // logic here
  9. }
  10. // testing only
  11. @EventPattern(`test`)
  12. test() {
  13. console.log(`testing`)
  14. }
  15. // testing only
  16. @EventPattern(`finger`)
  17. fingeprintService() {
  18. const service = new FingerprintService()
  19. service.testing()
  20. }
  21. }