Fix https for API call

This commit is contained in:
Sébastien Chopin 2016-12-21 01:17:09 +01:00
parent 1798cc004b
commit 20763b1cb6

View File

@ -25,7 +25,7 @@ export default {
}, },
data ({ query }) { data ({ query }) {
const page = +query.page || 1 const page = +query.page || 1
return axios.get('http://reqres.in/api/users?page=' + page) return axios.get('https://reqres.in/api/users?page=' + page)
.then((res) => { .then((res) => {
return { return {
page: +res.data.page, page: +res.data.page,