scraper
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { Controller, Post, Route, SuccessResponse } from "tsoa";
|
||||
import { inject } from "../infrastructure/di/index.js";
|
||||
import { FoundEventsService } from "../services/foundEvents/foundEventsService.js";
|
||||
|
||||
@Route("found-events")
|
||||
export class FoundEventsController extends Controller {
|
||||
private readonly foundEventsService = inject(FoundEventsService);
|
||||
|
||||
@Post("crawl")
|
||||
@SuccessResponse("200", "OK")
|
||||
//TODO add security
|
||||
public async crawl() {
|
||||
return await this.foundEventsService.crawl();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user