This commit is contained in:
echo committed 2025-05-06 10:01:03 +02:00
commit 0fa3c7ac48
140 files changed
+24289

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { Controller, Get, Param, ParseIntPipe } from '@nestjs/common';
import { AppService } from './app.service';
import { ScraperService } from './scraper/scraper.service';
@Controller()
export class AppController {
constructor(
private readonly appService: AppService,
private readonly scraperService: ScraperService,
) {}
@Get()
getHello(): string {
return this.appService.getHello();
}
@Get('scrape/:sourceId')
async triggerScrape(@Param('sourceId', ParseIntPipe) sourceId: number) {
return this.scraperService.manualScrape(sourceId);
}
}