Spaces:
Sleeping
Sleeping
Download apps/server/src/system/version-service.ts from phucsd/Oloka-Video-Dev: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/phucsd/Oloka-Video-Dev/resolve/main/apps/server/src/system/version-service.ts
- Command line
-
hf download hf://spaces/phucsd/Oloka-Video-Dev/apps/server/src/system/version-service.ts
-
curl -L -o version-service.ts https://huggingface.co/spaces/phucsd/Oloka-Video-Dev/resolve/main/apps/server/src/system/version-service.ts
498 Bytes
| import type { VersionResponse } from "@oloka/contracts"; | |
| import type { AppEnvironment } from "../config/environment.js"; | |
| export class VersionService { | |
| constructor(private readonly environment: AppEnvironment) {} | |
| getVersion(): VersionResponse { | |
| return { | |
| name: "Oloka Video", | |
| version: this.environment.appVersion, | |
| environment: this.environment.nodeEnv, | |
| gitCommitSha: this.environment.gitCommitSha, | |
| buildTimestamp: this.environment.buildTimestamp, | |
| }; | |
| } | |
| } | |