diff --git a/mixins/imageHelper.ts b/mixins/imageHelper.ts index aedd98a1..482b425d 100644 --- a/mixins/imageHelper.ts +++ b/mixins/imageHelper.ts @@ -1,4 +1,11 @@ -const imageHelper = { +/** + * This server as a helper for geting image urls from the itemId + * + * @mixin + */ +import Vue from 'vue'; + +const imageHelper = Vue.extend({ methods: { /** * returns a URL with the link to the image @@ -10,6 +17,6 @@ const imageHelper = { return `${this.$axios.defaults.baseURL}/Items/${id}/Images/${type}`; } } -}; +}); export default imageHelper;