Download src/bin/app.controller.ts from ydm1904/lab: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/ydm1904/lab/resolve/main/src/bin/app.controller.ts
- Command line
-
hf download hf://spaces/ydm1904/lab/src/bin/app.controller.ts
-
curl -L -o app.controller.ts https://huggingface.co/spaces/ydm1904/lab/resolve/main/src/bin/app.controller.ts
419 Bytes
| import { Controller, Get } from '@nestjs/common'; | |
| import { AppService } from './app.service'; | |
| import { version } from '../../package.json'; | |
| () | |
| export class AppController { | |
| constructor(private readonly appService: AppService) {} | |
| () | |
| version() { | |
| return { message: `version: ${version}` }; | |
| } | |
| ('/health') | |
| getHealthStatus() { | |
| return { status: 'ok', uptime: process.uptime() }; | |
| } | |
| } | |