26 lines
469 B
TypeScript
26 lines
469 B
TypeScript
|
|
|
|
import { Controller, Get } from '@nestjs/common';
|
|
import { Public } from '../auth/Public';
|
|
import { HelloService } from './HelloService';
|
|
|
|
@Public()
|
|
@Controller()
|
|
export class HelloController {
|
|
constructor(private readonly helloService: HelloService) {}
|
|
|
|
@Get('health')
|
|
health() {
|
|
return { status: 'ok' };
|
|
}
|
|
|
|
@Get('hello')
|
|
getHello() {
|
|
return this.helloService.getHello();
|
|
}
|
|
|
|
@Get()
|
|
getRoot() {
|
|
return this.helloService.getHello();
|
|
}
|
|
} |