visualize return value
This commit is contained in:
parent
4fb60c5892
commit
b1d2481e66
1 changed files with 3 additions and 1 deletions
|
@ -11,8 +11,10 @@ export async function load({ params }) {
|
||||||
error(404);
|
error(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
const toReturn = {
|
||||||
category: category.name_it,
|
category: category.name_it,
|
||||||
routes: await getRouteByCategory(categoryId),
|
routes: await getRouteByCategory(categoryId),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return toReturn;
|
||||||
}
|
}
|
Loading…
Reference in a new issue