Spaces:
Sleeping
Sleeping
Download src/app.controller.ts from anhkhoiphan/092_UI_core: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/anhkhoiphan/092_UI_core/resolve/main/src/app.controller.ts
- Command line
-
hf download hf://spaces/anhkhoiphan/092_UI_core/src/app.controller.ts
-
curl -L -o app.controller.ts https://huggingface.co/spaces/anhkhoiphan/092_UI_core/resolve/main/src/app.controller.ts
539 Bytes
| import { Controller, Get } from '@nestjs/common'; | |
| import { ApiTags, ApiOperation } from '@nestjs/swagger'; | |
| import { AppService } from './app.service'; | |
| ('Health Check') | |
| () | |
| export class AppController { | |
| constructor(private readonly appService: AppService) {} | |
| () | |
| ({ summary: 'Get hello message' }) | |
| getHello(): string { | |
| return this.appService.getHello(); | |
| } | |
| ('health') | |
| ({ summary: 'API Health Check' }) | |
| async getHealth() { | |
| return this.appService.getHealth(); | |
| } | |
| } | |