✏️ 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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

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: {