From 4f60d4250e8ce414522bef6e042bf64737f6fe09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 27 Nov 2016 19:26:42 +0100 Subject: [PATCH] Use https for API calls --- examples/custom-routes/pages/_user.vue | 2 +- examples/custom-routes/pages/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/custom-routes/pages/_user.vue b/examples/custom-routes/pages/_user.vue index 4e6985d537..874e37d718 100644 --- a/examples/custom-routes/pages/_user.vue +++ b/examples/custom-routes/pages/_user.vue @@ -12,7 +12,7 @@ import axios from 'axios' export default { data ({ params, error }) { - return axios.get(`http://jsonplaceholder.typicode.com/users/${params.id}`) + return axios.get(`https://jsonplaceholder.typicode.com/users/${params.id}`) .then((res) => res.data) .catch(() => { error({ message: 'User not found', statusCode: 404 }) diff --git a/examples/custom-routes/pages/index.vue b/examples/custom-routes/pages/index.vue index c3150ec05b..0583d602b3 100644 --- a/examples/custom-routes/pages/index.vue +++ b/examples/custom-routes/pages/index.vue @@ -14,7 +14,7 @@ import axios from 'axios' export default { data () { - return axios.get('http://jsonplaceholder.typicode.com/users') + return axios.get('https://jsonplaceholder.typicode.com/users') .then((res) => { return { users: res.data } })