refactoring

This commit is contained in:
Frank Knoll
2024-07-11 23:54:47 +02:00
parent 53ac140e83
commit 4fd0bc7490
5 changed files with 31 additions and 20 deletions

View File

@@ -1,10 +1,10 @@
class PrrByVaccineProvider {
static getPrrByVaccine(symptom) {
return fetch(`./data/ProportionalReportingRatios/symptoms/${symptom}.json`).then(response => response.json());
return fetch(`./data/ProportionalReportingRatios/symptoms/${symptom}`).then(response => response.json());
}
static getPrrBySymptom(vaccine) {
return fetch(`./data/ProportionalReportingRatios/vaccines/${vaccine}.json`).then(response => response.json());
return fetch(`./data/ProportionalReportingRatios/vaccines/${vaccine}`).then(response => response.json());
}
}