✏️ Small refactor endpoint into single string
This commit is contained in:
@@ -61,10 +61,10 @@ export default {
|
|||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
endpoint() {
|
endpoint() {
|
||||||
return `${`${widgetApiEndpoints.holidays}`
|
return `${widgetApiEndpoints.holidays}`
|
||||||
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
|
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
|
||||||
+ `&country=${this.country}&holidayType=${this.holidayType}`}${
|
+ `&country=${this.country}&holidayType=${this.holidayType}`
|
||||||
this.region}`;
|
+ `${this.region}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user