13 lines
264 B
TypeScript
13 lines
264 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { AppService } from './app.service';
|
|
|
|
@Controller()
|
|
export class AppController {
|
|
constructor(private readonly appService: AppService) {}
|
|
|
|
@Get()
|
|
getData() {
|
|
return this.appService.getData();
|
|
}
|
|
}
|