Files
gridpilot.gg/apps/api/src/domain/hello/HelloController.ts
2026-01-08 21:36:15 +01:00

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();
}
}