Files
team-planner/backend/src/app.controller.ts
2026-01-14 01:10:01 +03:00

21 lines
415 B
TypeScript

import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { Public } from './auth';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
@Public()
getHello(): string {
return this.appService.getHello();
}
@Get('health')
@Public()
health(): { status: string } {
return { status: 'ok' };
}
}