Download apps/server/src/app.controller.ts from techpark/rsswx: direct link, hf CLI and curl.
- Browser
- Download file 689 Bytes
-
https://huggingface.co/spaces/techpark/rsswx/resolve/main/apps/server/src/app.controller.ts
- Command line
-
hf download hf://spaces/techpark/rsswx/apps/server/src/app.controller.ts
-
curl -L -o app.controller.ts https://huggingface.co/spaces/techpark/rsswx/resolve/main/apps/server/src/app.controller.ts
689 Bytes
| import { Controller, Get, Redirect, Render } from '@nestjs/common'; | |
| import { AppService } from './app.service'; | |
| () | |
| export class AppController { | |
| constructor(private readonly appService: AppService) {} | |
| () | |
| getHello(): string { | |
| return this.appService.getHello(); | |
| } | |
| ('/robots.txt') | |
| forRobot(): string { | |
| return 'User-agent: *\nDisallow: /'; | |
| } | |
| ('favicon.ico') | |
| ('https://r2-assets.111965.xyz/wewe-rss.png', 302) | |
| getFavicon() {} | |
| ('/dash*') | |
| ('index.hbs') | |
| dashRender() { | |
| const { originUrl: weweRssServerOriginUrl } = | |
| this.appService.getFeedConfig(); | |
| return { | |
| weweRssServerOriginUrl, | |
| }; | |
| } | |
| } | |