Singular name for route.

This commit is contained in:
2020-07-21 13:17:22 +02:00
parent f6c8e1fdf6
commit 723b7be5c8

View File

@@ -66,7 +66,7 @@ export default {
const productSlug = this.$route.params.slug
let url = `/api/products/${ productSlug }`;
let url = `/api/product/${ productSlug }`;
if (window.location.href.includes('localhost'))
url = 'http://localhost:30010'.concat(url)