Skip to content
Snippets Groups Projects
engine.controller.ts 473 B
Newer Older
import { HttpService } from '@nestjs/axios';
import { Controller, Get, Inject } from '@nestjs/common';
import { ENGINE_SERVICE } from './engine.constants';
Steve Reis's avatar
Steve Reis committed
import { IEngineService } from './engine.interfaces';

@Controller()
export class EngineController {
  constructor(@Inject(ENGINE_SERVICE) private readonly engineService: IEngineService, private readonly httpService: HttpService) { }

  @Get("/test")
  getTest(): string {
    return this.engineService.demo();
  }
}