Download apps/server/src/app.service.ts from techpark/rsswx: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/techpark/rsswx/resolve/main/apps/server/src/app.service.ts
- Command line
-
hf download hf://spaces/techpark/rsswx/apps/server/src/app.service.ts
-
curl -L -o app.service.ts https://huggingface.co/spaces/techpark/rsswx/resolve/main/apps/server/src/app.service.ts
562 Bytes
| import { Injectable } from '@nestjs/common'; | |
| import { ConfigService } from '@nestjs/config'; | |
| import { ConfigurationType } from './configuration'; | |
| () | |
| export class AppService { | |
| constructor(private readonly configService: ConfigService) {} | |
| getHello(): string { | |
| return ` | |
| <div style="display:flex;justify-content: center;height: 100%;align-items: center;font-size: 30px;"> | |
| <div>>> <a href="/dash">WeWe RSS</a> <<</div> | |
| </div> | |
| `; | |
| } | |
| getFeedConfig() { | |
| return this.configService.get<ConfigurationType['feed']>('feed')!; | |
| } | |
| } | |