postio / apps /backend /src /api /routes /root.controller.ts
Leon4gr45's picture
Upload apps/backend/src/api/routes/root.controller.ts with huggingface_hub
6417176 verified
Raw
History Blame Contribute Delete
446 Bytes
import { Controller, Get } from '@nestjs/common';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
@ApiTags('Root')
@Controller('/')
export class RootController {
@Get('/')
@ApiOperation({ summary: 'Welcome page' })
getRoot(): string {
return 'App is running!';
}
@Get('/health')
@ApiOperation({ summary: 'Health check endpoint' })
getHealth() {
return { status: 'OK', timestamp: new Date().toISOString() };
}
}