Fix mixed content when use endpoint for categories list

This commit is contained in:
Cristian Cosenza
2020-01-03 00:14:05 +01:00
parent 22528f5b66
commit ef9cf2db22
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ import * as types from './mutation-types'
export const fetchCategories = ({ commit, dispatch, state }, data) => {
return new Promise((resolve, reject) => {
window.axios.get(`/api/categories/`).then((response) => {
window.axios.get(`/api/categories`).then((response) => {
commit(types.SET_CATEGORIES, response.data)
resolve(response)
}).catch((err) => {