✏️ Small refactor endpoint into single string

This commit is contained in:
Alicia Sykes
2022-09-04 23:38:13 +01:00
committed by GitHub
parent 38ad08a101
commit 86b56f6b48

View File

@@ -61,10 +61,10 @@ export default {
return '';
},
endpoint() {
return `${`${widgetApiEndpoints.holidays}`
return `${widgetApiEndpoints.holidays}`
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
+ `&country=${this.country}&holidayType=${this.holidayType}`}${
this.region}`;
+ `&country=${this.country}&holidayType=${this.holidayType}`
+ `${this.region}`;
},
},
methods: {