Answers for "How to set query params and message body?"

0

How to set query params and message body?

const params = {
	articleNumber: this.articleNumber,
	mode: 'bestseller',
};

const response = await axios.$get('/api/slider', { params });
Posted by: Guest on May-10-2021
0

How to set query params and message body?

const params = {
	articleNumber: this.articleNumber,
};

const response = await axios.$get('/api/slider?mode=bestseller', { params });
Posted by: Guest on May-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language