mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Fix mixed content when use endpoint for categories list
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user