good api route

This commit is contained in:
Andreani Jean
2023-06-12 16:01:54 +02:00
parent 67e3a646e5
commit e09db186e7

View File

@@ -149,9 +149,7 @@ function sortElements(type: string): void {
onMounted(async () => {
try {
const { data } = await axios.get(
`${
import.meta.env.VITE_API_URL
}api/users/6b845c81-0985-433c-84f4-4aa1ce540628/catalog/`
`${import.meta.env.VITE_API_URL}api/users/me/catalog`
)
const relChild = data.links.filter(
(el: LinkInterface) => el.rel === 'child'