summaryrefslogtreecommitdiff
path: root/src/web/src/app/scrape.service.ts
blob: fa256010cfbef495deed81ff11f47c8d7bae149d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable({
    providedIn: 'root',
})
export class ScrapeService {
    apiURL = 'http://localhost:5000/api/';

    constructor(private service: HttpClient) {}

    performCheck(id, query, type) {
        return this.service.get(this.apiURL + 'performCheck', {
            params: { id: id, query: query, type: type },
        });
    }
}