18 lines
309 B
TypeScript
18 lines
309 B
TypeScript
|
|
import { api } from '$lib/api';
|
||
|
|
|
||
|
|
export async function load() {
|
||
|
|
const [rawMaterials, mixes, products, productCosts] = await Promise.all([
|
||
|
|
api.rawMaterials(),
|
||
|
|
api.mixes(),
|
||
|
|
api.products(),
|
||
|
|
api.productCosts()
|
||
|
|
]);
|
||
|
|
|
||
|
|
return {
|
||
|
|
rawMaterials,
|
||
|
|
mixes,
|
||
|
|
products,
|
||
|
|
productCosts
|
||
|
|
};
|
||
|
|
}
|